summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Vu-Brugier <cvubrugier@fastmail.fm>2015-11-18 08:22:58 (GMT)
committerNicholas Bellinger <nab@linux-iscsi.org>2016-01-06 21:39:57 (GMT)
commit234bdbc49d118431b1ebeee228bd1b3105f89e2a (patch)
treebc165a2dcee90435285b1c86e77dabf89b9ecea3
parente6f41633cb79b55ead84b023c02035322c7827e7 (diff)
downloadlinux-234bdbc49d118431b1ebeee228bd1b3105f89e2a.tar.xz
target: fix deprecated attribute names in dmesg
The following message is displayed in dmesg when a deprecated attribute is set: "ignoring deprecated ##_name## attribute" This patch fixes the format to include the name of the deprecated attribute. Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r--drivers/target/target_core_configfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c
index affe4c3..e656b1c 100644
--- a/drivers/target/target_core_configfs.c
+++ b/drivers/target/target_core_configfs.c
@@ -549,7 +549,8 @@ static ssize_t _name##_store(struct config_item *item, const char *page,\
size_t count) \
{ \
printk_once(KERN_WARNING \
- "ignoring deprecated ##_name## attribute\n"); \
+ "ignoring deprecated %s attribute\n", \
+ __stringify(_name)); \
return count; \
}