summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/traceflags.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/base/traceflags.py b/base/traceflags.py
index 363d44ffb..8e1594b24 100644
--- a/base/traceflags.py
+++ b/base/traceflags.py
@@ -30,8 +30,15 @@
# This file generates the header and source files for the flags
# that control the tracing facility.
#
-hhfilename="traceflags.hh"
-ccfilename="traceflags.cc"
+
+import sys
+
+if len(sys.argv) != 2:
+ print "%s: Need argument (basename of cc/hh files)" % sys.argv[0]
+ sys.exit(1)
+
+hhfilename = sys.argv[1] + '.hh'
+ccfilename = sys.argv[1] + '.cc'
#
# The list of trace flags that can be used to condition DPRINTFs etc.