Messages in this thread Patch in this message | | | From | Kevin Corry <> | Subject | [PATCH] Device-Mapper 5/9 | 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/
| |