From: George Joseph Date: Mon, 20 Apr 2015 14:53:00 +0000 (-0600) Subject: pjsip_options: Fix format specifier for int64_t rtt. X-Git-Tag: 13.4.0-rc1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b74b2cdcda5b5c2228e55142ec33d3c16790e233;p=thirdparty%2Fasterisk.git pjsip_options: Fix format specifier for int64_t rtt. Contact status rtt is an int64_t and needs the PRId64 macro to properly create the format specifier on 32-bit systems. Change-Id: I4b8ab958fc1e9a179556a9b4ffa49673ba9fdec7 --- diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c index 9c0a1379d0..2653b339bb 100644 --- a/res/res_pjsip/pjsip_options.c +++ b/res/res_pjsip/pjsip_options.c @@ -137,7 +137,7 @@ static void update_contact_status(const struct ast_sip_contact *contact, ast_test_suite_event_notify("AOR_CONTACT_QUALIFY_RESULT", "Contact: %s\r\n" "Status: %s\r\n" - "RTT: %ld", + "RTT: %" PRId64, ast_sorcery_object_get_id(update), (update->status == AVAILABLE ? "Available" : "Unavailable"), update->rtt);