mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
sysfs: Convert print_symbol to %pSR
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>
This commit is contained in:
1 parent
f5e097f046
commit
6ad58fa82d
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user