mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
generic: rtl8366: change format string for debugfs error messages
SVN-Revision: 21909
This commit is contained in:
parent
e627f76251
commit
3471627f59
@ -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);
|
node = debugfs_create_x16("reg", S_IRUGO | S_IWUSR, root, &gl_dbg_reg);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
dev_err(rtl->parent, "Creating debugfs file reg failed\n");
|
dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
|
||||||
|
"reg");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
node = debugfs_create_file("val", S_IRUGO | S_IWUSR, root, rtl,
|
node = debugfs_create_file("val", S_IRUGO | S_IWUSR, root, rtl,
|
||||||
&fops_rtl8366rb_regs);
|
&fops_rtl8366rb_regs);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
dev_err(rtl->parent, "Creating debugfs file val failed\n");
|
dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
|
||||||
|
"val");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
node = debugfs_create_file("vlan", S_IRUSR, root, rtl,
|
node = debugfs_create_file("vlan", S_IRUSR, root, rtl,
|
||||||
&fops_rtl8366rb_vlan);
|
&fops_rtl8366rb_vlan);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
dev_err(rtl->parent,
|
dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
|
||||||
"Creating debugfs file vlan failed\n");
|
"vlan");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
node = debugfs_create_file("mibs", S_IRUSR, root, rtl,
|
node = debugfs_create_file("mibs", S_IRUSR, root, rtl,
|
||||||
&fops_rtl8366rb_mibs);
|
&fops_rtl8366rb_mibs);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
dev_err(rtl->parent,
|
dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
|
||||||
"Creating debugfs file mibs failed\n");
|
"mibs");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
node = debugfs_create_x16("reg", S_IRUGO | S_IWUSR, root, &g_dbg_reg);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
dev_err(rtl->parent, "Creating debugfs file reg failed\n");
|
dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
|
||||||
|
"reg");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
node = debugfs_create_file("val", S_IRUGO | S_IWUSR, root, rtl,
|
node = debugfs_create_file("val", S_IRUGO | S_IWUSR, root, rtl,
|
||||||
&fops_rtl8366s_regs);
|
&fops_rtl8366s_regs);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
dev_err(rtl->parent, "Creating debugfs file val failed\n");
|
dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
|
||||||
|
"val");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
node = debugfs_create_file("vlan", S_IRUSR, root, rtl,
|
node = debugfs_create_file("vlan", S_IRUSR, root, rtl,
|
||||||
&fops_rtl8366s_vlan);
|
&fops_rtl8366s_vlan);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
dev_err(rtl->parent,
|
dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
|
||||||
"Creating debugfs file vlan failed\n");
|
"vlan");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
node = debugfs_create_file("mibs", S_IRUSR, root, rtl,
|
node = debugfs_create_file("mibs", S_IRUSR, root, rtl,
|
||||||
&fops_rtl8366s_mibs);
|
&fops_rtl8366s_mibs);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
dev_err(rtl->parent,
|
dev_err(rtl->parent, "Creating debugfs file '%s' failed\n",
|
||||||
"Creating debugfs file mibs failed\n");
|
"mibs");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user