Revision
16961
Author
sathieu
Date
2010-03-10 11:04:00 -0600 (Wed, 10 Mar 2010)

Log Message

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

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_skinny/skinny_protocol.h (16960 => 16961)


--- freeswitch/trunk/src/mod/endpoints/mod_skinny/skinny_protocol.h	2010-03-10 14:37:14 UTC (rev 16960)
+++ freeswitch/trunk/src/mod/endpoints/mod_skinny/skinny_protocol.h	2010-03-10 17:04:00 UTC (rev 16961)
@@ -795,7 +795,7 @@
 /*****************************************************************************/
 #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;\
 	}