ref: ef7cce3d148e206f2b34f967cee1b545bc08127d
parent: b9058e4987084d59e231ac6f1d713080c0bc7189
author: ruil2 <ruil2@cisco.com>
date: Thu Jul 17 06:09:52 EDT 2014
modify trace output
--- a/codec/common/src/utils.cpp
+++ b/codec/common/src/utils.cpp
@@ -68,12 +68,9 @@
WelsSnprintf (pTraceTag, MAX_LOG_SIZE, "[OpenH264] Detail:");
break;
}
- va_start (vl, pTraceTag);
- logCtx->pfLog (logCtx->pLogCtx, iLevel, pTraceTag, vl);
- va_end (vl);
-
+ WelsStrcat(pTraceTag,MAX_LOG_SIZE,kpFmt);
va_start (vl, kpFmt);
- logCtx->pfLog (logCtx->pLogCtx, iLevel, kpFmt, vl);
+ logCtx->pfLog (logCtx->pLogCtx, iLevel, pTraceTag, vl);
va_end (vl);
}