projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29fb58d
)
ARM: SAMSUNG: using vsnprintf instead of vsprintf for the limit buffer length 256
author
Chen Gang
<gang.chen@asianux.com>
Fri, 25 Jan 2013 18:29:01 +0000
(10:29 -0800)
committer
Kukjin Kim
<kgene.kim@samsung.com>
Thu, 31 Jan 2013 06:28:05 +0000
(22:28 -0800)
the buff is 256 limited, so need use vsnprintf instead of vsprintf
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Cc: Ben Dooks <ben@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-samsung/pm.c
patch
|
blob
|
history
diff --git
a/arch/arm/plat-samsung/pm.c
b/arch/arm/plat-samsung/pm.c
index
1507028
..
d896add
100644
(file)
--- a/
arch/arm/plat-samsung/pm.c
+++ b/
arch/arm/plat-samsung/pm.c
@@
-51,7
+51,7
@@
void s3c_pm_dbg(const char *fmt, ...)
char buff[256];
va_start(va, fmt);
- vs
printf(buff
, fmt, va);
+ vs
nprintf(buff, sizeof(buff)
, fmt, va);
va_end(va);
printascii(buff);