Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2017 09:17:28 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326510 - head/contrib/bsnmp/snmpd
Message-ID:  <201712040917.vB49HS87077580@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Mon Dec  4 09:17:28 2017
New Revision: 326510
URL: https://svnweb.freebsd.org/changeset/base/326510

Log:
  Fix format string warning with enabled DEBUGGING.
  
  MFC after:	1 week

Modified:
  head/contrib/bsnmp/snmpd/config.c

Modified: head/contrib/bsnmp/snmpd/config.c
==============================================================================
--- head/contrib/bsnmp/snmpd/config.c	Mon Dec  4 08:50:00 2017	(r326509)
+++ head/contrib/bsnmp/snmpd/config.c	Mon Dec  4 09:17:28 2017	(r326510)
@@ -663,7 +663,7 @@ gettoken()
 			printf("(EOL)");
 			break;
 		  case TOK_NUM:
-			printf("(NUM %llu)", numval);
+			printf("(NUM %ju)", (uintmax_t)numval);
 			break;
 		  case TOK_STR:
 			printf("(STR %.*s)", (int)strvallen, strval);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712040917.vB49HS87077580>