提交 869c221f authored 作者: Mathieu Parent's avatar Mathieu Parent

Skinny: more portable printf for sizeof (thanks to bkw)


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16961 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 fa92f47b
......@@ -795,7 +795,7 @@ uint32_t skinny_str2device_reset_type(const char *str);
/*****************************************************************************/
#define skinny_check_data_length(message, len) \
if (message->length < len+4) {\
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Received Too Short Skinny Message (Expected %zu, got %d).\n", len+4, message->length);\
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Received Too Short Skinny Message (Expected %" SWITCH_SIZE_T_FMT ", got %d).\n", len+4, message->length);\
return SWITCH_STATUS_FALSE;\
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论