From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuJ8H-0006TE-Qb for qemu-devel@nongnu.org; Wed, 03 Jul 2013 05:13:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuJ8F-0002D0-Bd for qemu-devel@nongnu.org; Wed, 03 Jul 2013 05:13:49 -0400 Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:62109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuJ8F-0002Cf-3c for qemu-devel@nongnu.org; Wed, 03 Jul 2013 05:13:47 -0400 Received: by mail-ea0-f172.google.com with SMTP id q10so3341268eaj.3 for ; Wed, 03 Jul 2013 02:13:46 -0700 (PDT) Date: Wed, 3 Jul 2013 11:13:42 +0200 From: Stefan Hajnoczi Message-ID: <20130703091342.GD17614@stefanha-thinkpad.muc.redhat.com> References: <51D1D04F.3010201@hds.com> <20130702090926.GC8393@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v5] Add timestamp to error_report() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Seiji Aguchi Cc: "kwolf@redhat.com" , "aliguori@us.ibm.com" , "mtosatti@redhat.com" , "qemu-devel@nongnu.org" , "armbru@redhat.com" , "dle-develop@lists.sourceforge.net" , Tomoki Sekiyama , "pbonzini@redhat.com" , "lcapitulino@redhat.com" , "lersek@redhat.com" On Tue, Jul 02, 2013 at 02:09:24PM +0000, Seiji Aguchi wrote: > > > > > +DEF("msg", HAS_ARG, QEMU_OPTION_msg, > > > + "-msg [timestamp=on|off]\n" > > > + " change the format of messages\n" > > > + " timestamp=on|off enables leading timestamps (default:on)\n", > > > + QEMU_ARCH_ALL) > > > +STEXI > > > +@item -msg timestamp=on|off > > > +@findex -msg > > > +prepend a timestamp to each log message. > > > +(disabled by default) > > > +ETEXI > > > > I am confused. If the user specifies -msg then enable_timestamp_msg is > > on by default. If the user does not specify -msg then > > enable_timestmap_msg is off. Did I get that right? > > Yes. > > > > > This means that the default behavior of QEMU does not change but you can > > add -msg to enable timestamps. > > > > I'm happy with this but find the documentation confusing. > > I can remove "(disabled by default)" if needed. Perhaps the simplest solution is timestamp=off by default. Then there can be no confusion and users must do -msg timestamp=on to enable timestamps. If you really want to keep -msg as a shortcut for -msg timestamp=on, then please document explicitly that: 1. Without -msg timestamps are off. 1. With -msg timestamps are on. 2. -msg timestamp=off can be used to turn timestamps off again. Stefan