From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut2C-0003Zs-MR for qemu-devel@nongnu.org; Mon, 14 Jan 2013 18:01:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tut2B-00037R-2Q for qemu-devel@nongnu.org; Mon, 14 Jan 2013 18:01:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut2A-00037I-Hs for qemu-devel@nongnu.org; Mon, 14 Jan 2013 18:01:38 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0EN1b9O016700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 Jan 2013 18:01:37 -0500 Message-ID: <50F48E50.5050806@redhat.com> Date: Mon, 14 Jan 2013 16:01:36 -0700 From: Eric Blake MIME-Version: 1.0 References: <1355751593-31535-1-git-send-email-mrezanin@redhat.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2UFMFOUTTNAVWHLCVBPDE" Subject: Re: [Qemu-devel] [PATCH v8 2/4] qemu-img: Add "Quiet mode" option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Miroslav Rezanina Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2UFMFOUTTNAVWHLCVBPDE Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01/14/2013 03:26 AM, Miroslav Rezanina wrote: > There can be a need to turn output to stdout off. This patch adds a -q = option > that enable "Quiet mode". In Quiet mode, only errors are printed out. >=20 > Signed-off-by: Miroslav Rezanina > --- > if (result.corruptions_fixed || result.leaks_fixed) { > - printf("The following inconsistencies were found and repaired:= \n\n" > + qprintf(quiet,=20 > + "The following inconsistencies were found and repaired:= \n\n" > " %d leaked clusters\n" > " %d corruptions\n\n" Here, and in other multi-line conversions, you failed to reindent the subsequent lines, so indentation is now off. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org ------enig2UFMFOUTTNAVWHLCVBPDE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJQ9I5QAAoJEKeha0olJ0Nqz1EH/iDmuT7m/4DQovWJvINlffmz s/CXX5kk/4OSrGOFJAeNHIrK87oZRw8vhDk716v++6LA2A1p6txm1IuYBXygwjzq 2HAufq9OIWjxFzpfhMj9Geex/7UXHGgyQ4LoYSxA8icXa2Xf/J/TPESxYPty7qgK /JiVT1/INzoJ3SylNmR3UGGH+hBIIO7CM+4nFehcAm2m738gXn8AlW/d9GTxGvdO QgwanfQ6/ucuFj/PY4U4VlfybmB1uy8bHfINVBBxY4D/TDntsrEEkNyrmNfDrPqK xZ4fTSJ4dUshYo8WDKwWAqQf2Z/UsijKUhtwc4TJJzK6RqDn3PEzxanlk/Jy8K0= =J1x4 -----END PGP SIGNATURE----- ------enig2UFMFOUTTNAVWHLCVBPDE--