[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/8] trace: [tracetool] Cosmetic changes
From: |
Lluís Vilanova |
Subject: |
[Qemu-devel] [PATCH 4/8] trace: [tracetool] Cosmetic changes |
Date: |
Sun, 23 Feb 2014 20:37:19 +0100 |
User-agent: |
StGit/0.16 |
Signed-off-by: Lluís Vilanova <address@hidden>
---
scripts/tracetool/__init__.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py
index 3cf7a4e..7abffb6 100644
--- a/scripts/tracetool/__init__.py
+++ b/scripts/tracetool/__init__.py
@@ -256,18 +256,18 @@ def generate(fevents, format, backend,
format = str(format)
if len(format) is 0:
raise TracetoolError("format not set")
- mformat = format.replace("-", "_")
- if not tracetool.format.exists(mformat):
+ if not tracetool.format.exists(format):
raise TracetoolError("unknown format: %s" % format)
+ format = format.replace("-", "_")
backend = str(backend)
if len(backend) is 0:
raise TracetoolError("backend not set")
- mbackend = backend.replace("-", "_")
- if not tracetool.backend.exists(mbackend):
+ if not tracetool.backend.exists(backend):
raise TracetoolError("unknown backend: %s" % backend)
+ backend = backend.replace("-", "_")
- 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))
@@ -280,7 +280,7 @@ def generate(fevents, format, backend,
if backend == "nop":
( e.properies.add("disable") for e in events )
- 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)
- [Qemu-devel] [PATCH 0/8] Tracetool cleanup, Lluís Vilanova, 2014/02/23
- [Qemu-devel] [PATCH 1/8] trace: [tracetool] Add method 'Event.api' to build event names, Lluís Vilanova, 2014/02/23
- [Qemu-devel] [PATCH 2/8] trace: [tracetool] Add methods 'Event.copy' and 'Arguments.copy', Lluís Vilanova, 2014/02/23
- [Qemu-devel] [PATCH 3/8] trace: [tracetool] Spacing changes, Lluís Vilanova, 2014/02/23
- [Qemu-devel] [PATCH 4/8] trace: [tracetool] Cosmetic changes,
Lluís Vilanova <=
- [Qemu-devel] [PATCH 6/8] trace: [tracetool] Change format docs to point to the generated file, Lluís Vilanova, 2014/02/23
- [Qemu-devel] [PATCH 5/8] trace: [tracetool] Show list of frontends and backends sorted by name, Lluís Vilanova, 2014/02/23
- [Qemu-devel] [PATCH 7/8] trace: [simple] Bump up log version number, Lluís Vilanova, 2014/02/23
- [Qemu-devel] [PATCH 8/8] trace: [tracetool] Minimize the amount of per-backend code, Lluís Vilanova, 2014/02/23