mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
wakeup_reason: use vsnprintf instead of snprintf for vargs.
Bug: 22368519 Change-Id: I38f6f1ac6eaf9490bdc195c59e045b33ad154a72 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
This commit is contained in:
parent
f6d4e6286e
commit
0ff10ad812
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,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);
|
||||
vsnprintf(abort_reason, MAX_SUSPEND_ABORT_LEN, fmt, args);
|
||||
va_end(args);
|
||||
|
||||
spin_unlock(&resume_reason_lock);
|
||||
|
|
Loading…
Reference in a new issue