Messages in this thread Patch in this message | | | Date | Thu, 11 Nov 2004 17:52:16 +0000 | From | Alasdair G Kergon <> | 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/
| |