Commit 0cd33124 authored by Alasdair G Kergon's avatar Alasdair G Kergon Committed by Linus Torvalds

dm: remove duplicate module name from error msgs

Remove explicit module name from messages as the macro now includes it
automatically.
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ac818646
...@@ -1352,15 +1352,14 @@ static int __init dm_multipath_init(void) ...@@ -1352,15 +1352,14 @@ static int __init dm_multipath_init(void)
r = dm_register_target(&multipath_target); r = dm_register_target(&multipath_target);
if (r < 0) { if (r < 0) {
DMERR("%s: register failed %d", multipath_target.name, r); DMERR("register failed %d", r);
kmem_cache_destroy(_mpio_cache); kmem_cache_destroy(_mpio_cache);
return -EINVAL; return -EINVAL;
} }
kmultipathd = create_workqueue("kmpathd"); kmultipathd = create_workqueue("kmpathd");
if (!kmultipathd) { if (!kmultipathd) {
DMERR("%s: failed to create workqueue kmpathd", DMERR("failed to create workqueue kmpathd");
multipath_target.name);
dm_unregister_target(&multipath_target); dm_unregister_target(&multipath_target);
kmem_cache_destroy(_mpio_cache); kmem_cache_destroy(_mpio_cache);
return -ENOMEM; return -ENOMEM;
...@@ -1381,8 +1380,7 @@ static void __exit dm_multipath_exit(void) ...@@ -1381,8 +1380,7 @@ static void __exit dm_multipath_exit(void)
r = dm_unregister_target(&multipath_target); r = dm_unregister_target(&multipath_target);
if (r < 0) if (r < 0)
DMERR("%s: target unregister failed %d", DMERR("target unregister failed %d", r);
multipath_target.name, r);
kmem_cache_destroy(_mpio_cache); kmem_cache_destroy(_mpio_cache);
} }
......
...@@ -1335,8 +1335,7 @@ static int __init dm_mirror_init(void) ...@@ -1335,8 +1335,7 @@ static int __init dm_mirror_init(void)
r = dm_register_target(&mirror_target); r = dm_register_target(&mirror_target);
if (r < 0) { if (r < 0) {
DMERR("%s: Failed to register mirror target", DMERR("Failed to register mirror target");
mirror_target.name);
dm_dirty_log_exit(); dm_dirty_log_exit();
} }
...@@ -1349,7 +1348,7 @@ static void __exit dm_mirror_exit(void) ...@@ -1349,7 +1348,7 @@ static void __exit dm_mirror_exit(void)
r = dm_unregister_target(&mirror_target); r = dm_unregister_target(&mirror_target);
if (r < 0) if (r < 0)
DMERR("%s: unregister failed %d", mirror_target.name, r); DMERR("unregister failed %d", r);
dm_dirty_log_exit(); dm_dirty_log_exit();
} }
......
...@@ -205,7 +205,7 @@ static void __exit dm_rr_exit(void) ...@@ -205,7 +205,7 @@ static void __exit dm_rr_exit(void)
int r = dm_unregister_path_selector(&rr_ps); int r = dm_unregister_path_selector(&rr_ps);
if (r < 0) if (r < 0)
DMERR("round-robin: unregister failed %d", r); DMERR("unregister failed %d", r);
} }
module_init(dm_rr_init); module_init(dm_rr_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment