From 227c39d95d1f4d11cf3dae83e37446c165eb5def Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Fri, 28 Aug 2015 15:52:43 +0100 Subject: [PATCH] trace: fix data file trace name in warning The warning refers to trace.bin, which is not the extension that we use for it. Instead, use the variable with the default trace name (trace.dat) for the warning. --- wlauto/instrumentation/trace_cmd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/instrumentation/trace_cmd/__init__.py b/wlauto/instrumentation/trace_cmd/__init__.py index 3a494021..7fca4579 100644 --- a/wlauto/instrumentation/trace_cmd/__init__.py +++ b/wlauto/instrumentation/trace_cmd/__init__.py @@ -239,7 +239,7 @@ class TraceCmdInstrument(Instrument): # To get the output of trace.dat, trace-cmd must be installed # This is done host-side because the generated file is very large if not os.path.isfile(local_trace_file): - self.logger.warning('Not generating trace.txt, as trace.bin does not exist.') + self.logger.warning('Not generating trace.txt, as {} does not exist.'.format(OUTPUT_TRACE_FILE)) try: command = 'trace-cmd report {} > {}'.format(local_trace_file, local_txt_trace_file) self.logger.debug(command)