Commit 589eaffd authored by Alasdair G. Kergon's avatar Alasdair G. Kergon Committed by Linus Torvalds

[PATCH] device-mapper: Fix some DMERR macro usage

Fix some DMERR macro usage. It already adds : and \n.
Signed-Off-By: default avatarAlasdair G Kergon <agk@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8081f96f
......@@ -663,14 +663,14 @@ int dm_table_add_target(struct dm_table *t, const char *type,
if (!len) {
tgt->error = "zero-length target";
DMERR(": %s\n", tgt->error);
DMERR("%s", tgt->error);
return -EINVAL;
}
tgt->type = dm_get_target_type(type);
if (!tgt->type) {
tgt->error = "unknown target type";
DMERR(": %s\n", tgt->error);
DMERR("%s", tgt->error);
return -EINVAL;
}
......@@ -707,7 +707,7 @@ int dm_table_add_target(struct dm_table *t, const char *type,
return 0;
bad:
DMERR(": %s\n", tgt->error);
DMERR("%s", tgt->error);
dm_put_target_type(tgt->type);
return r;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment