aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2015-03-20 14:36:50 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2015-03-20 14:36:50 -0400
commit62554910a94a62f7b9b79cee3ca6bac95abe3c29 (patch)
tree25d0c55725dcf9203160031cb61a04abf9f714dc /drivers
parentd23dbaaaa454667ad6af6feb56f740a990d1295d (diff)
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: Olaf Hering <olaf@aepfle.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/target/target_core_configfs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c
index 75d89adfccc0..69baf1c53d99 100644
--- a/drivers/target/target_core_configfs.c
+++ b/drivers/target/target_core_configfs.c
@@ -142,8 +142,8 @@ static struct config_group *target_core_register_fabric(
142 142
143 tf = target_core_get_fabric(name); 143 tf = target_core_get_fabric(name);
144 if (!tf) { 144 if (!tf) {
145 pr_err("target_core_register_fabric() trying autoload for %s\n", 145 pr_debug("target_core_register_fabric() trying autoload for %s\n",
146 name); 146 name);
147 147
148 /* 148 /*
149 * Below are some hardcoded request_module() calls to automatically 149 * Below are some hardcoded request_module() calls to automatically
@@ -165,8 +165,8 @@ static struct config_group *target_core_register_fabric(
165 */ 165 */
166 ret = request_module("iscsi_target_mod"); 166 ret = request_module("iscsi_target_mod");
167 if (ret < 0) { 167 if (ret < 0) {
168 pr_err("request_module() failed for" 168 pr_debug("request_module() failed for"
169 " iscsi_target_mod.ko: %d\n", ret); 169 " iscsi_target_mod.ko: %d\n", ret);
170 return ERR_PTR(-EINVAL); 170 return ERR_PTR(-EINVAL);
171 } 171 }
172 } else if (!strncmp(name, "loopback", 8)) { 172 } else if (!strncmp(name, "loopback", 8)) {
@@ -178,8 +178,8 @@ static struct config_group *target_core_register_fabric(
178 */ 178 */
179 ret = request_module("tcm_loop"); 179 ret = request_module("tcm_loop");
180 if (ret < 0) { 180 if (ret < 0) {
181 pr_err("request_module() failed for" 181 pr_debug("request_module() failed for"
182 " tcm_loop.ko: %d\n", ret); 182 " tcm_loop.ko: %d\n", ret);
183 return ERR_PTR(-EINVAL); 183 return ERR_PTR(-EINVAL);
184 } 184 }
185 } 185 }
@@ -188,8 +188,8 @@ static struct config_group *target_core_register_fabric(
188 } 188 }
189 189
190 if (!tf) { 190 if (!tf) {
191 pr_err("target_core_get_fabric() failed for %s\n", 191 pr_debug("target_core_get_fabric() failed for %s\n",
192 name); 192 name);
193 return ERR_PTR(-EINVAL); 193 return ERR_PTR(-EINVAL);
194 } 194 }
195 pr_debug("Target_Core_ConfigFS: REGISTER -> Located fabric:" 195 pr_debug("Target_Core_ConfigFS: REGISTER -> Located fabric:"