From f2c325bf3e864a8a8c7ebc73f89b4787b95e60e9 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Sun, 6 Jan 2013 13:47:06 +0100 Subject: [PATCH] ftmod_misdn: Fix %lx vs.__u64 format string error Fixes: src/ftmod/ftmod_misdn/ftmod_misdn.c:924:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type '__u64' [-Werror=format] Signed-off-by: Stefan Knoblich Reported-by: hyper_ch #freetdm @ irc.freenode.net --- libs/freetdm/src/ftmod/ftmod_misdn/ftmod_misdn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/freetdm/src/ftmod/ftmod_misdn/ftmod_misdn.c b/libs/freetdm/src/ftmod/ftmod_misdn/ftmod_misdn.c index 0aa770e19a..48b70a319c 100644 --- a/libs/freetdm/src/ftmod/ftmod_misdn/ftmod_misdn.c +++ b/libs/freetdm/src/ftmod/ftmod_misdn/ftmod_misdn.c @@ -924,7 +924,7 @@ static int misdn_handle_mph_information_ind(ftdm_channel_t *chan, const struct m ftdm_log_chan(chan, FTDM_LOG_DEBUG, "mISDN port state:\n\tD-Chan proto:\t%hu\n\tD-Chan state:\t%s (%hu)\n\tD-Chan flags:\t%#"FTDM_XINT64_FMT"\n\t\t\t%-70s\n", info->dch.ch.protocol, misdn_hw_state_name(info->dch.ch.protocol, info->dch.state), info->dch.state, - info->dch.ch.Flags, + (uint64_t)info->dch.ch.Flags, misdn_hw_print_flags(info->dch.ch.Flags, tmp, sizeof(tmp) - 1)); /* TODO: try to translate this to a usable set of alarm flags */