mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
wakeup_reason: use vsnprintf instead of snsprintf for vargs.
Bug: 22368519 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com> (cherry picked from commit 26dfa1394af4da60bf8ce7c5e56168b1ad8f2179)
This commit is contained in:
parent
ba53469fa9
commit
2d5778b3fa
|
|
@ -151,7 +151,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 New Issue
Block a user