From owner-svn-src-all@freebsd.org Sat May 19 18:15:42 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9E9CEDCFAD; Sat, 19 May 2018 18:15:42 +0000 (UTC) (envelope-from mmacy@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8FA79040; Sat, 19 May 2018 18:15:42 +0000 (UTC) (envelope-from mmacy@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2AD532A2A; Sat, 19 May 2018 18:15:42 +0000 (UTC) (envelope-from mmacy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4JIFgTc056858; Sat, 19 May 2018 18:15:42 GMT (envelope-from mmacy@FreeBSD.org) Received: (from mmacy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4JIFgmx056857; Sat, 19 May 2018 18:15:42 GMT (envelope-from mmacy@FreeBSD.org) Message-Id: <201805191815.w4JIFgmx056857@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mmacy set sender to mmacy@FreeBSD.org using -f From: Matt Macy Date: Sat, 19 May 2018 18:15:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333882 - head/sys/dev/bhnd/tools X-SVN-Group: head X-SVN-Commit-Author: mmacy X-SVN-Commit-Paths: head/sys/dev/bhnd/tools X-SVN-Commit-Revision: 333882 X-SVN-Commit-Repository: base 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.26 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: Sat, 19 May 2018 18:15:42 -0000 Author: mmacy Date: Sat May 19 18:15:41 2018 New Revision: 333882 URL: https://svnweb.freebsd.org/changeset/base/333882 Log: bhnd nvram map: don't write "variable records written" to standard out by default Add -v (verbose) option for the developers. The rest of us derive no value from this information. Modified: head/sys/dev/bhnd/tools/nvram_map_gen.awk Modified: head/sys/dev/bhnd/tools/nvram_map_gen.awk ============================================================================== --- head/sys/dev/bhnd/tools/nvram_map_gen.awk Sat May 19 18:02:46 2018 (r333881) +++ head/sys/dev/bhnd/tools/nvram_map_gen.awk Sat May 19 18:15:41 2018 (r333882) @@ -56,6 +56,7 @@ function main(_i) { OUT_T = null OUT_T_HEADER = "HEADER" OUT_T_DATA = "DATA" + VERBOSE = 0 # Tab width to use when calculating output alignment TAB_WIDTH = 8 @@ -77,6 +78,8 @@ function main(_i) { OUT_T = OUT_T_DATA } else if (ARGV[_i] == "-h" && OUT_T == null) { OUT_T = OUT_T_HEADER + } else if (ARGV[_i] == "-v") { + VERBOSE = 1 } else if (ARGV[_i] == "-o") { _i++ if (_i >= ARGC) @@ -488,9 +491,10 @@ function at_exit(_block_start, _state, _output_vars, _ } else if (OUT_T == OUT_T_HEADER) { write_header(_output_vars) } - - printf("%u variable records written to %s\n", array_size(_output_vars), - OUTPUT_FILE) >> "/dev/stderr" + if (VERBOSE == 1) { + printf("%u variable records written to %s\n", array_size(_output_vars), + OUTPUT_FILE) >> "/dev/stderr" + } } # Write the public header (output type HEADER)