From: Matthew Jordan Date: Mon, 6 Apr 2015 17:51:59 +0000 (+0000) Subject: clang compiler warnings: Fix format specified in framehook X-Git-Tag: 11.18.0-rc1~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0437fd733096c4dd5e8221de3747db28fb9778e5;p=thirdparty%2Fasterisk.git clang compiler warnings: Fix format specified in framehook This patch fixes an invalid format specifier used in the formatting of an ERROR message in the framehook code. The format specifier specifies a type of 'unsigned short', but the argument passed to it is of type 'int'. The patch changes the format specifier to 'i'. Review: https://reviewboard.asterisk.org/r/4540 ASTERISK-24917 Reported by: dkdegroot patches: rb4535.patch submitted by dkdegroot (License 6600) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@434087 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/framehook.c b/main/framehook.c index 830a4593a2..1338a2f153 100644 --- a/main/framehook.c +++ b/main/framehook.c @@ -97,7 +97,7 @@ int ast_framehook_attach(struct ast_channel *chan, struct ast_framehook_interfac struct ast_framehook_list *fh_list; struct ast_frame *frame; if (i->version != AST_FRAMEHOOK_INTERFACE_VERSION) { - ast_log(LOG_ERROR, "Version '%hu' of framehook interface not what we compiled against (%hu)\n", + ast_log(LOG_ERROR, "Version '%hu' of framehook interface not what we compiled against (%i)\n", i->version, AST_FRAMEHOOK_INTERFACE_VERSION); return -1; }