From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCYz3-0003lj-6I for qemu-devel@nongnu.org; Thu, 22 Aug 2013 13:48:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCYyv-0007UN-51 for qemu-devel@nongnu.org; Thu, 22 Aug 2013 13:47:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCYyu-0007Tz-Tf for qemu-devel@nongnu.org; Thu, 22 Aug 2013 13:47:37 -0400 From: Markus Armbruster References: <1377175700-16229-1-git-send-email-marcel.a@redhat.com> <5216197C.2060509@suse.de> <878uztstin.fsf@blackfin.pond.sub.org> <52162F6D.7070605@redhat.com> <1377191908.1888.69.camel@localhost.localdomain> Date: Thu, 22 Aug 2013 19:47:32 +0200 In-Reply-To: <1377191908.1888.69.camel@localhost.localdomain> (Marcel Apfelbaum's message of "Thu, 22 Aug 2013 20:18:28 +0300") Message-ID: <87li3t1utn.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH ] qemu-help: add category headlines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum Cc: aliguori@us.ibm.com, mst@redhat.com, qemu-devel@nongnu.org, pbonzini@redhat.com, Andreas =?utf-8?Q?F=C3=A4r?= =?utf-8?Q?ber?= Marcel Apfelbaum writes: > On Thu, 2013-08-22 at 09:34 -0600, Eric Blake wrote: >> On 08/22/2013 08:13 AM, Markus Armbruster wrote: >> >> >>> +++ b/qdev-monitor.c >> >>> @@ -156,6 +156,8 @@ static void >> >>> qdev_print_category_devices(DeviceCategory category) >> >>> DeviceClass *dc; >> >>> GSList *list, *curr; >> >>> >> >>> + error_printf("%s devices:\n", qdev_category_get_name(category)); >> >> >> >> Why is that an error? Shouldn't it go to stdout? >> > >> > Output of -device help has always gone to stderr, and that has always >> > annoyed me. Just not enough to fix it. >> >> Back when libvirt scraped -help output, changing it to use stdout would >> be an incompatible change. But now that libvirt uses QMP, I would also >> welcome a change to use stdout (but also fall in the category of "not >> enough of a bother for ME to fix it). > It really bothers me. I need to use the help (being new to qemu ...) > and I am always forgetting "2>&1". > > Anyone can think of a reason for not sending the help to stdout? Post a patch and find out ;)