target: fix deprecated attribute names in dmesg
authorChristophe Vu-Brugier <cvubrugier@fastmail.fm>
Wed, 18 Nov 2015 08:22:58 +0000 (09:22 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 6 Jan 2016 21:39:57 +0000 (13:39 -0800)
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>
drivers/target/target_core_configfs.c

index affe4c393ebcbbdbd15d049208548470d7e71a1f..e656b1cef4dae2ca1c9da3e118e2a89afff6bfc7 100644 (file)
@@ -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;                                                   \
 }