[PATCH] device-mapper: Fix some DMERR macro usage
From: Alasdair G Kergon
Date: Thu Nov 11 2004 - 13:01:07 EST
Fix some DMERR macro usage. It already adds : and \n.
Signed-Off-By: Alasdair G Kergon <agk@xxxxxxxxxx>
--- diff/drivers/md/dm-table.c 2004-11-10 15:05:36.000000000 +0000
+++ source/drivers/md/dm-table.c 2004-11-10 15:06:36.000000000 +0000
@@ -664,14 +664,14 @@
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;
}
@@ -708,7 +708,7 @@
return 0;
bad:
- DMERR(": %s\n", tgt->error);
+ DMERR("%s", tgt->error);
dm_put_target_type(tgt->type);
return r;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/