diff options
author | Daniel P. Berrangé | 2018-03-06 16:46:50 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2018-03-12 12:10:20 +0100 |
commit | 86b5aacfb972ffe0fa5fac6028e9f0bc61050dda (patch) | |
tree | 613506fc5e8fce59946c9fb010125151eb48dd37 /scripts/tracetool.py | |
parent | simpletrace: fix timestamp argument type (diff) | |
download | qemu-86b5aacfb972ffe0fa5fac6028e9f0bc61050dda.tar.gz qemu-86b5aacfb972ffe0fa5fac6028e9f0bc61050dda.tar.xz qemu-86b5aacfb972ffe0fa5fac6028e9f0bc61050dda.zip |
trace: include filename when printing parser error messages
Improves error messages from:
ValueError: Error on line 72: need more than 1 value to unpack
To
ValueError: Error at /home/berrange/src/virt/qemu/trace-events:72:
need more than 1 value to unpack
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180306154650.24075-1-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/tracetool.py')
-rwxr-xr-x | scripts/tracetool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tracetool.py b/scripts/tracetool.py index c55a21518b..fe2b0771f2 100755 --- a/scripts/tracetool.py +++ b/scripts/tracetool.py @@ -142,7 +142,7 @@ def main(args): events = [] for arg in args: with open(arg, "r") as fh: - events.extend(tracetool.read_events(fh)) + events.extend(tracetool.read_events(fh, arg)) try: tracetool.generate(events, arg_group, arg_format, arg_backends, |