From owner-svn-src-all@FreeBSD.ORG Wed Jan 2 18:12:27 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 408BF159; Wed, 2 Jan 2013 18:12:27 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 329E11A8B; Wed, 2 Jan 2013 18:12:27 +0000 (UTC) Received: from svn.freebsd.org (svn.FreeBSD.org [8.8.178.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r02ICRBc037574; Wed, 2 Jan 2013 18:12:27 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r02ICBae037474; Wed, 2 Jan 2013 18:12:11 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201301021812.r02ICBae037474@svn.freebsd.org> From: Adrian Chadd Date: Wed, 2 Jan 2013 18:12:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r244963 - head/tools/tools/ath/athkey X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 18:12:27 -0000 Author: adrian Date: Wed Jan 2 18:12:06 2013 New Revision: 244963 URL: http://svnweb.freebsd.org/changeset/base/244963 Log: * Add missing err() string formats; * Fix up a printf() type mismatch. Thanks to: clang Modified: head/tools/tools/ath/athkey/athkey.c Modified: head/tools/tools/ath/athkey/athkey.c ============================================================================== --- head/tools/tools/ath/athkey/athkey.c Wed Jan 2 18:09:30 2013 (r244962) +++ head/tools/tools/ath/athkey/athkey.c Wed Jan 2 18:12:06 2013 (r244963) @@ -83,8 +83,8 @@ getdata(const char *arg, u_int8_t *data, } if (len > maxlen) { fprintf(stderr, - "%s: too much data in %s, max %u bytes\n", - progname, arg, maxlen); + "%s: too much data in %s, max %llu bytes\n", + progname, arg, (unsigned long long) maxlen); } data[len++] = (b0<<4) | b1; } @@ -178,7 +178,7 @@ main(int argc, char *argv[]) atd.ad_in_data = (caddr_t) &keyix; atd.ad_in_size = sizeof(u_int16_t); if (ioctl(s, SIOCGATHDIAG, &atd) < 0) - err(1, atd.ad_name); + err(1, "ioctl: %s", atd.ad_name); return 0; case HAL_DIAG_SETKEY: if (argc != 3 && argc != 4) @@ -196,7 +196,7 @@ main(int argc, char *argv[]) atd.ad_in_data = (caddr_t) &setkey; atd.ad_in_size = sizeof(setkey); if (ioctl(s, SIOCGATHDIAG, &atd) < 0) - err(1, atd.ad_name); + err(1, "ioctl: %s", atd.ad_name); return 0; } return -1;