Commit 62554910 authored by Nicholas Bellinger's avatar Nicholas Bellinger

target: Convert fabric module autoload failures to pr_debug

This patch converts the fabric module autoload failures from
pr_err to pr_debug in target_core_register_fabric() code, to
reduce the amount of noise during normal operation.
Reported-by: default avatarOlaf Hering <olaf@aepfle.de>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent d23dbaaa
...@@ -142,7 +142,7 @@ static struct config_group *target_core_register_fabric( ...@@ -142,7 +142,7 @@ static struct config_group *target_core_register_fabric(
tf = target_core_get_fabric(name); tf = target_core_get_fabric(name);
if (!tf) { if (!tf) {
pr_err("target_core_register_fabric() trying autoload for %s\n", pr_debug("target_core_register_fabric() trying autoload for %s\n",
name); name);
/* /*
...@@ -165,7 +165,7 @@ static struct config_group *target_core_register_fabric( ...@@ -165,7 +165,7 @@ static struct config_group *target_core_register_fabric(
*/ */
ret = request_module("iscsi_target_mod"); ret = request_module("iscsi_target_mod");
if (ret < 0) { if (ret < 0) {
pr_err("request_module() failed for" pr_debug("request_module() failed for"
" iscsi_target_mod.ko: %d\n", ret); " iscsi_target_mod.ko: %d\n", ret);
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }
...@@ -178,7 +178,7 @@ static struct config_group *target_core_register_fabric( ...@@ -178,7 +178,7 @@ static struct config_group *target_core_register_fabric(
*/ */
ret = request_module("tcm_loop"); ret = request_module("tcm_loop");
if (ret < 0) { if (ret < 0) {
pr_err("request_module() failed for" pr_debug("request_module() failed for"
" tcm_loop.ko: %d\n", ret); " tcm_loop.ko: %d\n", ret);
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }
...@@ -188,7 +188,7 @@ static struct config_group *target_core_register_fabric( ...@@ -188,7 +188,7 @@ static struct config_group *target_core_register_fabric(
} }
if (!tf) { if (!tf) {
pr_err("target_core_get_fabric() failed for %s\n", pr_debug("target_core_get_fabric() failed for %s\n",
name); name);
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }
......
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