mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 17:10:13 +00:00
dm-mpath: don't print the "loaded" message if registering fails
If dm_register_path_selector, don't print the "version X loaded" message. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
parent
f86272350f
commit
6e11952a6a
@ -541,8 +541,10 @@ static int __init dm_hst_init(void)
|
||||
{
|
||||
int r = dm_register_path_selector(&hst_ps);
|
||||
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
DMERR("register failed %d", r);
|
||||
return r;
|
||||
}
|
||||
|
||||
DMINFO("version " HST_VERSION " loaded");
|
||||
|
||||
|
||||
@ -260,8 +260,10 @@ static int __init dm_ql_init(void)
|
||||
{
|
||||
int r = dm_register_path_selector(&ql_ps);
|
||||
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
DMERR("register failed %d", r);
|
||||
return r;
|
||||
}
|
||||
|
||||
DMINFO("version " QL_VERSION " loaded");
|
||||
|
||||
|
||||
@ -220,8 +220,10 @@ static int __init dm_rr_init(void)
|
||||
{
|
||||
int r = dm_register_path_selector(&rr_ps);
|
||||
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
DMERR("register failed %d", r);
|
||||
return r;
|
||||
}
|
||||
|
||||
DMINFO("version " RR_VERSION " loaded");
|
||||
|
||||
|
||||
@ -341,8 +341,10 @@ static int __init dm_st_init(void)
|
||||
{
|
||||
int r = dm_register_path_selector(&st_ps);
|
||||
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
DMERR("register failed %d", r);
|
||||
return r;
|
||||
}
|
||||
|
||||
DMINFO("version " ST_VERSION " loaded");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user