bonding: convert bond_procfs.c to use netdev_printk instead of pr_
authorVeaceslav Falico <vfalico@gmail.com>
Tue, 15 Jul 2014 17:36:07 +0000 (19:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jul 2014 06:15:59 +0000 (23:15 -0700)
CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_procfs.c

index b215b479bb3a6917ffd6d37f30f989996d176f5b..de62c0385dfb06309a5fa4b4aff3f524a099ebe3 100644 (file)
@@ -252,8 +252,8 @@ void bond_create_proc_entry(struct bonding *bond)
                                                    S_IRUGO, bn->proc_dir,
                                                    &bond_info_fops, bond);
                if (bond->proc_entry == NULL)
-                       pr_warn("Warning: Cannot create /proc/net/%s/%s\n",
-                               DRV_NAME, bond_dev->name);
+                       netdev_warn(bond_dev, "Cannot create /proc/net/%s/%s\n",
+                                   DRV_NAME, bond_dev->name);
                else
                        memcpy(bond->proc_file_name, bond_dev->name, IFNAMSIZ);
        }