Received: from eggs.gnu.org ([2001:4830:134:3::10]:44278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHerf-00027F-KP for qemu-devel@nongnu.org; Sun, 23 Feb 2014 14:37:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHerY-0005uW-Ve for qemu-devel@nongnu.org; Sun, 23 Feb 2014 14:37:27 -0500 Received: from roura.ac.upc.es ([147.83.33.10]:55368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHerY-0005sx-4I for qemu-devel@nongnu.org; Sun, 23 Feb 2014 14:37:20 -0500 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Sun, 23 Feb 2014 20:37:19 +0100 Message-Id: <20140223193718.28465.59864.stgit@fimbulvetr.bsc.es> In-Reply-To: <20140223193656.28465.12158.stgit@fimbulvetr.bsc.es> References: <20140223193656.28465.12158.stgit@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 4/8] trace: [tracetool] Cosmetic changes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi Signed-off-by: Llu=C3=ADs Vilanova --- scripts/tracetool/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.p= y index 3cf7a4e..7abffb6 100644 --- a/scripts/tracetool/__init__.py +++ b/scripts/tracetool/__init__.py @@ -256,18 +256,18 @@ def generate(fevents, format, backend, format =3D str(format) if len(format) is 0: raise TracetoolError("format not set") - mformat =3D format.replace("-", "_") - if not tracetool.format.exists(mformat): + if not tracetool.format.exists(format): raise TracetoolError("unknown format: %s" % format) + format =3D format.replace("-", "_") =20 backend =3D str(backend) if len(backend) is 0: raise TracetoolError("backend not set") - mbackend =3D backend.replace("-", "_") - if not tracetool.backend.exists(mbackend): + if not tracetool.backend.exists(backend): raise TracetoolError("unknown backend: %s" % backend) + backend =3D backend.replace("-", "_") =20 - if not tracetool.backend.compatible(mbackend, mformat): + if not tracetool.backend.compatible(backend, format): raise TracetoolError("backend '%s' not compatible with format '%= s'" % (backend, format)) =20 @@ -280,7 +280,7 @@ def generate(fevents, format, backend, if backend =3D=3D "nop": ( e.properies.add("disable") for e in events ) =20 - tracetool.format.generate_begin(mformat, events) + tracetool.format.generate_begin(format, events) tracetool.backend.generate("nop", format, [ e for e in events @@ -289,4 +289,4 @@ def generate(fevents, format, backend, [ e for e in events if "disable" not in e.properties ]) - tracetool.format.generate_end(mformat, events) + tracetool.format.generate_end(format, events)