projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45e6e57
)
wakeup_reason: use vsnprintf instead of snsprintf for vargs.
author
Ruchi Kandoi
<kandoiruchi@google.com>
Wed, 5 Aug 2015 23:54:53 +0000
(16:54 -0700)
committer
John Stultz
<john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:42 +0000
(13:53 -0800)
Bug:
22368519
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
kernel/power/wakeup_reason.c
patch
|
blob
|
history
diff --git
a/kernel/power/wakeup_reason.c
b/kernel/power/wakeup_reason.c
index 21787ebb332fcfe5e2b45b15581a1a5aae1ca737..252611fad2fee221c0cee0f3dc563bdd88a4fc3a 100644
(file)
--- a/
kernel/power/wakeup_reason.c
+++ b/
kernel/power/wakeup_reason.c
@@
-159,7
+159,7
@@
void log_suspend_abort_reason(const char *fmt, ...)
suspend_abort = true;
va_start(args, fmt);
- snprintf(abort_reason, MAX_SUSPEND_ABORT_LEN, fmt, args);
+
v
snprintf(abort_reason, MAX_SUSPEND_ABORT_LEN, fmt, args);
va_end(args);
spin_unlock(&resume_reason_lock);
}