summaryrefslogtreecommitdiff
path: root/drivers/base/core.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-12-12 22:19:07 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-18 00:57:07 +0400
commite79798659339be800bf553c0b6fb06745aecf37f (patch)
tree2a1aa22102a76659a8dba3dcc70136f4df0f9cef /drivers/base/core.c
parent6ad58fa82db897b4422a873c01fa41f84b652502 (diff)
downloadlinux-e79798659339be800bf553c0b6fb06745aecf37f.tar.xz
drivers: base: 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>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r--drivers/base/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 27603a6c0a93..2937c631ea41 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -97,8 +97,8 @@ static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
if (dev_attr->show)
ret = dev_attr->show(dev, dev_attr, buf);
if (ret >= (ssize_t)PAGE_SIZE) {
- print_symbol("dev_attr_show: %s returned bad count\n",
- (unsigned long)dev_attr->show);
+ printk("dev_attr_show: %pSR returned bad count\n",
+ dev_attr->show);
}
return ret;
}