mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
ANDROID: wakeup_reason: use vsnprintf instead of snsprintf for vargs.
Bug: 22368519 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
This commit is contained in:
parent
ced8538d7e
commit
ea0b7f743e
@ -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);
|
||||
vsnprintf(abort_reason, MAX_SUSPEND_ABORT_LEN, fmt, args);
|
||||
va_end(args);
|
||||
spin_unlock(&resume_reason_lock);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user