lkml.org 
[lkml]   [2004]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] device-mapper: Fix some DMERR macro usage
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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.089 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site