sysfs: Convert print_symbol to %pSR
authorJoe Perches <joe@perches.com>
Wed, 12 Dec 2012 18:19:09 +0000 (10:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 20:57:07 +0000 (12:57 -0800)
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>
fs/sysfs/file.c

index 602f56db0442bea394d77b208aea303ccbe6f026..bd7e59ba92464fbfdd349c3c85957b5ccf1fb677 100644 (file)
@@ -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;
        }
This page took 0.026633 seconds and 5 git commands to generate.