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
This commit is contained in:
Mathieu Parent 2010-03-10 17:04:00 +00:00
parent fa92f47bd1
commit 869c221f3a
1 changed files with 1 additions and 1 deletions

View File

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