Skip to content

Commit

Permalink
sysfs: Convert print_symbol to %pSR
Browse files Browse the repository at this point in the history
Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Joe Perches authored and Greg Kroah-Hartman committed Jan 17, 2013
1 parent f5e097f commit 6ad58fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/sysfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
if (count >= (ssize_t)PAGE_SIZE) {
print_symbol("fill_read_buffer: %s returned bad count\n",
(unsigned long)ops->show);
printk("fill_read_buffer: %pSR returned bad count\n",
ops->show);
/* Try to struggle along */
count = PAGE_SIZE - 1;
}
Expand Down

0 comments on commit 6ad58fa

Please sign in to comment.