ref: c49f303b144bd362a0c0f2503fd6e886c89d2b69
parent: b2066e1dc2c93b00400acfed1ef9ea041a0cf832
author: Ethan Hugg <ehugg@cisco.com>
date: Thu Dec 19 06:40:40 EST 2013
Use %llu instead to print a size_t.
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -2123,8 +2123,8 @@
}
#if defined(MEMORY_MONITOR)
- WelsLog (pCtx, WELS_LOG_INFO, "WelsInitEncoderExt() exit, overall memory usage: %u bytes\n",
- static_cast<unsigned int>(sizeof (sWelsEncCtx) /* requested size from malloc() or new operator */
+ WelsLog (pCtx, WELS_LOG_INFO, "WelsInitEncoderExt() exit, overall memory usage: %llu bytes\n",
+ static_cast<unsigned long long>(sizeof (sWelsEncCtx) /* requested size from malloc() or new operator */
+ pCtx->pMemAlign->WelsGetMemoryUsage()) /* requested size from CMemoryAlign::WelsMalloc() */
);
#endif//MEMORY_MONITOR