Date: Thu, 4 Feb 2016 09:00:00 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r295245 - user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd Message-ID: <201602040900.u1490090004045@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Thu Feb 4 09:00:00 2016 New Revision: 295245 URL: https://svnweb.freebsd.org/changeset/base/295245 Log: Explicitly use %jx and %ju instead of QUADXFMT and QUADFMT obfuscation This mutes a -Wformat error about using the wrong format qualifier Modified: user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd/config.c Modified: user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd/config.c ============================================================================== --- user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd/config.c Thu Feb 4 08:54:59 2016 (r295244) +++ user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd/config.c Thu Feb 4 09:00:00 2016 (r295245) @@ -823,7 +823,8 @@ parse_oid(const char *varname, struct as while (token == '.') { if (gettoken() == TOK_NUM) { if (numval > ASN_MAXID) - report("subid too large %#"QUADXFMT, numval); + report("subid too large %#jx", + (uintmax_t)numval); if (oid->len == ASN_MAXOIDLEN) report("index too long"); if (gettoken() != ':') @@ -878,7 +879,7 @@ parse_syntax_integer(struct snmp_value * if (token != TOK_NUM) report("bad INTEGER syntax"); if (numval > 0x7fffffff) - report("INTEGER too large %"QUADFMT, numval); + report("INTEGER too large %ju", (uintmax_t)numval); value->v.integer = numval; gettoken();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602040900.u1490090004045>