From: Joe Perches Date: Wed, 12 Dec 2012 18:19:07 +0000 (-0800) Subject: drivers: base: Convert print_symbol to %pSR X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e79798659339be800bf553c0b6fb06745aecf37f;p=linux-beck.git drivers: base: Convert print_symbol to %pSR Use the new vsprintf extension to avoid any possible message interleaving. Signed-off-by: Joe Perches Signed-off-by: Greg Kroah-Hartman --- 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; }