projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ad58fa
)
drivers: base: Convert print_symbol to %pSR
author
Joe Perches
<joe@perches.com>
Wed, 12 Dec 2012 18:19:07 +0000
(10:19 -0800)
committer
Greg 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>
drivers/base/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/core.c
b/drivers/base/core.c
index 27603a6c0a93ea63fc40f640c8b892fb5e0c618c..2937c631ea413626f935f83b868f0a496a062d03 100644
(file)
--- 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);
+ print
k("dev_attr_show: %pSR
returned bad count\n",
+ dev_attr->show);
}
return ret;
}