mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
FreeTDM: Add gcc printf()-style format string checks to ftdm_log(), also add FTDM_(U)INT64_FMT and FTDM_TIME_FMT constants.
The format string checks already caught a couple crash-worthy bugs and this commit fixes a couple more. Also includes __ftdm_check_scanf(), for completeness (currently unused). Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
This commit is contained in:
@@ -144,7 +144,7 @@ int main(int argc, char *argv[])
|
||||
ftdm_channel_call_indicate(lchan, ind);
|
||||
stop = ftdm_current_time_in_ms();
|
||||
diff = stop - start;
|
||||
ftdm_log(FTDM_LOG_DEBUG, "Setting indication %s took %llums\n",
|
||||
ftdm_log(FTDM_LOG_DEBUG, "Setting indication %s took %"FTDM_TIME_FMT" ms\n",
|
||||
ftdm_channel_indication2str(ind), diff);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user