* [PATCH] device-mapper: Fix some DMERR macro usage
@ 2004-11-11 17:52 Alasdair G Kergon
0 siblings, 0 replies; only message in thread
From: Alasdair G Kergon @ 2004-11-11 17:52 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Fix some DMERR macro usage. It already adds : and \n.
Signed-Off-By: Alasdair G Kergon <agk@redhat.com>
--- 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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-11 17:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-11 17:52 [PATCH] device-mapper: Fix some DMERR macro usage Alasdair G Kergon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®