Skip to content
Snippets Groups Projects
Commit 9f27dc0f authored by Ruchi Kandoi's avatar Ruchi Kandoi Committed by Vineeta Srivastava
Browse files

wakeup_reason: use vsnprintf instead of snprintf for vargs.


Bug: 22368519
Change-Id: I38f6f1ac6eaf9490bdc195c59e045b33ad154a72
Signed-off-by: default avatarRuchi Kandoi <kandoiruchi@google.com>
parent b6c0298b
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment