[PATCH] Device-Mapper 5/9
From: Kevin Corry (kevcorry_at_us.ibm.com)
Date: 04/12/04
- Previous message: Kevin Corry: "[PATCH] Device-Mapper 8/9"
- In reply to: Kevin Corry: "[PATCH] Device-Mapper 0/9"
- Next in thread: Kevin Corry: "[PATCH] Device-Mapper 7/9"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: LKML <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@osdl.org> Date: Mon, 12 Apr 2004 09:18:48 -0500
Log an error if the target has unknown target type, or zero length.
--- diff/drivers/md/dm-table.c 2004-04-09 09:40:14.000000000 -0500
+++ source/drivers/md/dm-table.c 2004-04-09 09:42:20.000000000 -0500
@@ -663,12 +663,14 @@
if (!len) {
tgt->error = "zero-length target";
+ DMERR(": %s\n", tgt->error);
return -EINVAL;
}
tgt->type = dm_get_target_type(type);
if (!tgt->type) {
tgt->error = "unknown target type";
+ DMERR(": %s\n", tgt->error);
return -EINVAL;
}
@@ -705,7 +707,7 @@
return 0;
bad:
- printk(KERN_ERR DM_NAME ": %s\n", tgt->error);
+ DMERR(": %s\n", 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/
- Previous message: Kevin Corry: "[PATCH] Device-Mapper 8/9"
- In reply to: Kevin Corry: "[PATCH] Device-Mapper 0/9"
- Next in thread: Kevin Corry: "[PATCH] Device-Mapper 7/9"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|