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>pull/1314/head
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…
Reference in New Issue