]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: add message type in too short warning
authorMathieu Parent <math.parent@gmail.com>
Thu, 20 May 2010 18:51:18 +0000 (20:51 +0200)
committerMathieu Parent <math.parent@gmail.com>
Thu, 20 May 2010 18:51:18 +0000 (20:51 +0200)
src/mod/endpoints/mod_skinny/skinny_protocol.h

index c9dcb4b81bbfb74660fd2cee775b6660fcec2575..f9dbab474be0e99861c3ce3d1b0f5096f27d642d 100644 (file)
@@ -628,7 +628,10 @@ char* skinny_codec2string(enum skinny_codecs skinnycodec);
 /*****************************************************************************/
 #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 %" SWITCH_SIZE_T_FMT ", got %d).\n", len+4, message->length);\
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,\
+                       "Received Too Short Skinny Message %s (type=%x,length=%d), expected %d.\n",\
+                       skinny_message_type2str(request->type), request->type, request->length,\
+               len+4);\
            return SWITCH_STATUS_FALSE;\
     }
 #define skinny_check_data_length_soft(message, len) \