瀏覽代碼

dm linear: remove redundant target name from error messages

Commit 72d94861 back in 2006 should have consistently removed
"dm-linear: " from all error messages.

Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Tomohiro Kusumi 9 年之前
父節點
當前提交
00272c854e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      drivers/md/dm-linear.c

+ 3 - 3
drivers/md/dm-linear.c

@@ -39,20 +39,20 @@ static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv)
 
 
 	lc = kmalloc(sizeof(*lc), GFP_KERNEL);
 	lc = kmalloc(sizeof(*lc), GFP_KERNEL);
 	if (lc == NULL) {
 	if (lc == NULL) {
-		ti->error = "dm-linear: Cannot allocate linear context";
+		ti->error = "Cannot allocate linear context";
 		return -ENOMEM;
 		return -ENOMEM;
 	}
 	}
 
 
 	ret = -EINVAL;
 	ret = -EINVAL;
 	if (sscanf(argv[1], "%llu%c", &tmp, &dummy) != 1) {
 	if (sscanf(argv[1], "%llu%c", &tmp, &dummy) != 1) {
-		ti->error = "dm-linear: Invalid device sector";
+		ti->error = "Invalid device sector";
 		goto bad;
 		goto bad;
 	}
 	}
 	lc->start = tmp;
 	lc->start = tmp;
 
 
 	ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev);
 	ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev);
 	if (ret) {
 	if (ret) {
-		ti->error = "dm-linear: Device lookup failed";
+		ti->error = "Device lookup failed";
 		goto bad;
 		goto bad;
 	}
 	}