Received: from eggs.gnu.org ([140.186.70.92]:45866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbr29-0000Jl-Sa for qemu-devel@nongnu.org; Wed, 29 Jun 2011 05:26:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbr28-0006dV-2M for qemu-devel@nongnu.org; Wed, 29 Jun 2011 05:26:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbr27-0006dQ-Ib for qemu-devel@nongnu.org; Wed, 29 Jun 2011 05:26:07 -0400 From: Markus Armbruster References: <1305805037-17752-1-git-send-email-armbru@redhat.com> <1305805037-17752-3-git-send-email-armbru@redhat.com> <20110519131033.GA13222@amit-x200.redhat.com> <4E0AE365.1070101@redhat.com> Date: Wed, 29 Jun 2011 11:26:04 +0200 In-Reply-To: <4E0AE365.1070101@redhat.com> (Gerd Hoffmann's message of "Wed, 29 Jun 2011 10:33:41 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH 2/4] virtio-serial: Clean up virtser_bus_dev_print() output List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Amit Shah , Andreas =?utf-8?Q?F=C3=A4rber?= , alevy@redhat.com, qemu-devel@nongnu.org Gerd Hoffmann writes: > Hi, > >> Erm, I'm not aware that my qdev bool patch got committed yet, so the >> question of how to parse/print bool properties (on/off vs. yes/no) is >> still undecided, no comments so far. It would be entirely possible to >> let the author decide that on a case-by-case basis by using different >> property type enums for the same 'bool' type. > > Just accept both "on" and "yes" for true and both "off" and "no" for false? > > For printing we'll have to pick one though. I'd tend to pick on/off > as I guess most properties will enable or disable some feature. Or > have the two enums ... KISS. Let's stick to one way to print bools. If on/off carries so much meaning that it offends aesthetic sensibilities too much, sidestep meaning and use 1/0.