Commit 6ad58fa8 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

sysfs: Convert print_symbol to %pSR

Use the new vsprintf extension to avoid any possible
message interleaving.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f5e097f0
...@@ -91,8 +91,8 @@ static int fill_read_buffer(struct dentry * dentry, struct sysfs_buffer * buffer ...@@ -91,8 +91,8 @@ static int fill_read_buffer(struct dentry * dentry, struct sysfs_buffer * buffer
* indicate truncated result or overflow in normal use cases. * indicate truncated result or overflow in normal use cases.
*/ */
if (count >= (ssize_t)PAGE_SIZE) { if (count >= (ssize_t)PAGE_SIZE) {
print_symbol("fill_read_buffer: %s returned bad count\n", printk("fill_read_buffer: %pSR returned bad count\n",
(unsigned long)ops->show); ops->show);
/* Try to struggle along */ /* Try to struggle along */
count = PAGE_SIZE - 1; count = PAGE_SIZE - 1;
} }
......
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