Commit bdbceb4d authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

staging: unisys: fix some debugfs output

When we removed the ERRDEV() macro we made a small mistake so now it
doesn't print the "Virtual PCI devices" section header.

Fixes: 0aca7844 ('staging: unisys: remove ERRDEV macros')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 549fb6e3
...@@ -1289,8 +1289,8 @@ static ssize_t info_debugfs_read(struct file *file, char __user *buf, ...@@ -1289,8 +1289,8 @@ static ssize_t info_debugfs_read(struct file *file, char __user *buf,
printparam.str_pos = &str_pos; printparam.str_pos = &str_pos;
printparam.buf = vbuf; printparam.buf = vbuf;
printparam.len = &len; printparam.len = &len;
if (bus_for_each_dev(&virtpci_bus_type, NULL, bus_for_each_dev(&virtpci_bus_type, NULL, (void *)&printparam,
(void *)&printparam, print_vbus)) print_vbus);
str_pos += scnprintf(vbuf + str_pos, len - str_pos, str_pos += scnprintf(vbuf + str_pos, len - str_pos,
"\n Virtual PCI devices\n"); "\n Virtual PCI devices\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment