backfire: generic: rtl8366: change format string for debugfs error messages (backport...
authorGabor Juhos <juhosg@openwrt.org>
Sat, 26 Jun 2010 19:52:45 +0000 (19:52 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 26 Jun 2010 19:52:45 +0000 (19:52 +0000)
SVN-Revision: 21928

target/linux/generic-2.6/files/drivers/net/phy/rtl8366rb.c
target/linux/generic-2.6/files/drivers/net/phy/rtl8366s.c

index 1069225d20e895ae437a4984bdc96e482d2302ba..fd8b7e49d1336c5b98e8f41ad080b95eb157ba8a 100644 (file)
@@ -954,30 +954,32 @@ static void rtl8366rb_debugfs_init(struct rtl8366rb *rtl)
 
        node = debugfs_create_x16("reg", S_IRUGO | S_IWUSR, root, &gl_dbg_reg);
        if (!node) {
-               dev_err(rtl->parent, "Creating debugfs file reg failed\n");
+               dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
+                       "reg");
                return;
        }
 
        node = debugfs_create_file("val", S_IRUGO | S_IWUSR, root, rtl,
                                   &fops_rtl8366rb_regs);
        if (!node) {
-               dev_err(rtl->parent, "Creating debugfs file val failed\n");
+               dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
+                       "val");
                return;
        }
 
        node = debugfs_create_file("vlan", S_IRUSR, root, rtl,
                                   &fops_rtl8366rb_vlan);
        if (!node) {
-               dev_err(rtl->parent,
-                       "Creating debugfs file vlan failed\n");
+               dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
+                       "vlan");
                return;
        }
 
        node = debugfs_create_file("mibs", S_IRUSR, root, rtl,
                                   &fops_rtl8366rb_mibs);
        if (!node) {
-               dev_err(rtl->parent,
-                       "Creating debugfs file mibs failed\n");
+               dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
+                       "mibs");
                return;
        }
 }
index f30a5a3c6d87242333bcf04ac09dd779fb452605..c4ba2c11ef21d7fc9bba528348ced892e09895c7 100644 (file)
@@ -922,30 +922,32 @@ static void rtl8366s_debugfs_init(struct rtl8366s *rtl)
 
        node = debugfs_create_x16("reg", S_IRUGO | S_IWUSR, root, &g_dbg_reg);
        if (!node) {
-               dev_err(rtl->parent, "Creating debugfs file reg failed\n");
+               dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
+                       "reg");
                return;
        }
 
        node = debugfs_create_file("val", S_IRUGO | S_IWUSR, root, rtl,
                                   &fops_rtl8366s_regs);
        if (!node) {
-               dev_err(rtl->parent, "Creating debugfs file val failed\n");
+               dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
+                       "val");
                return;
        }
 
        node = debugfs_create_file("vlan", S_IRUSR, root, rtl,
                                   &fops_rtl8366s_vlan);
        if (!node) {
-               dev_err(rtl->parent,
-                       "Creating debugfs file vlan failed\n");
+               dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
+                       "vlan");
                return;
        }
 
        node = debugfs_create_file("mibs", S_IRUSR, root, rtl,
                                   &fops_rtl8366s_mibs);
        if (!node) {
-               dev_err(rtl->parent,
-                       "Creating debugfs file mibs failed\n");
+               dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
+                       "mibs");
                return;
        }
 }