From owner-svn-src-user@freebsd.org Thu Feb 4 09:00:02 2016 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 111A5A9BA8C for ; Thu, 4 Feb 2016 09:00:02 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D65038C; Thu, 4 Feb 2016 09:00:01 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u14900GX004046; Thu, 4 Feb 2016 09:00:00 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1490090004045; Thu, 4 Feb 2016 09:00:00 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201602040900.u1490090004045@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Garrett Cooper Date: Thu, 4 Feb 2016 09:00:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r295245 - user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2016 09:00:02 -0000 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();