From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9vOi-0001Jl-G9 for qemu-devel@nongnu.org; Tue, 20 Mar 2012 05:30:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9vOc-00083V-DH for qemu-devel@nongnu.org; Tue, 20 Mar 2012 05:30:32 -0400 Received: from mail-we0-f173.google.com ([74.125.82.173]:57418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9vOc-00083I-43 for qemu-devel@nongnu.org; Tue, 20 Mar 2012 05:30:26 -0400 Received: by werp12 with SMTP id p12so7780498wer.4 for ; Tue, 20 Mar 2012 02:30:24 -0700 (PDT) Date: Mon, 19 Mar 2012 17:45:42 +0000 From: Stefan Hajnoczi Message-ID: <20120319174542.GA6341@stefanha-thinkpad.localdomain> References: <20120313200235.24179.63987.stgit@ginnungagap.bsc.es> <20120313200343.24179.70582.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20120313200343.24179.70582.stgit@ginnungagap.bsc.es> Subject: Re: [Qemu-devel] [PATCH 12/12] trace: [tracetool] Add error-reporting functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Llu=EDs?= Vilanova Cc: harsh@linux.vnet.ibm.com, qemu-devel@nongnu.org, aneesh.kumar@linux.vnet.ibm.com On Tue, Mar 13, 2012 at 09:03:43PM +0100, Lluís Vilanova wrote: > @@ -514,8 +521,9 @@ def main(): > try: > opts, args = getopt.getopt(sys.argv[1:], "", long_options) > except getopt.GetoptError, err: > - # print help information and exit: > - print str(err) # will print something like "option -a not recognized" > + # print help information and exit > + # will print something like "option -a not recognized" > + error_write(str(err)+"\n") Please use whitespace in expressions: error_write(str(err) + "\n")