[asterisk-commits] mjordan: branch 13 r434088 - in /branches/13: ./ main/framehook.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 6 12:52:15 CDT 2015


Author: mjordan
Date: Mon Apr  6 12:52:13 2015
New Revision: 434088

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=434088
Log:
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)
........

Merged revisions 434087 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    branches/13/   (props changed)
    branches/13/main/framehook.c

Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: branches/13/main/framehook.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/main/framehook.c?view=diff&rev=434088&r1=434087&r2=434088
==============================================================================
--- branches/13/main/framehook.c (original)
+++ branches/13/main/framehook.c Mon Apr  6 12:52:13 2015
@@ -137,7 +137,7 @@
 	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;
 	}




More information about the asterisk-commits mailing list