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:
Ruchi Kandoi 2015-08-05 17:09:39 -07:00 committed by Huang, Tao
parent ba53469fa9
commit 2d5778b3fa

View File

@ -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);
}