aboutsummaryrefslogtreecommitdiff
path: root/scripts/tracetool.py
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2016-10-13 20:29:30 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2016-10-28 18:17:24 +0300
commit630b210b9abbf362905a2096c22c5eb1d6224e77 (patch)
treecc2534beef2749611e13aaba2731821358bcb459 /scripts/tracetool.py
parent814bb12a561d36aeb5ae4440ad43d2b0761d76da (diff)
downloadqemu-630b210b9abbf362905a2096c22c5eb1d6224e77.zip
qemu-630b210b9abbf362905a2096c22c5eb1d6224e77.tar.gz
qemu-630b210b9abbf362905a2096c22c5eb1d6224e77.tar.bz2
Fix build for less common build directories names
scripts/tracetool generates a C preprocessor macro from the name of the build directory. Any characters which are possible in a directory name but not allowed in a macro name must be substituted, otherwise builds will fail. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts/tracetool.py')
-rwxr-xr-xscripts/tracetool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tracetool.py b/scripts/tracetool.py
index 629b259..fe9c9e9 100755
--- a/scripts/tracetool.py
+++ b/scripts/tracetool.py
@@ -70,7 +70,7 @@ def make_group_name(filename):
if dirname == "":
return "common"
- return re.sub(r"/|-", "_", dirname)
+ return re.sub(r"[^A-Za-z0-9]", "_", dirname)
def main(args):
global _SCRIPT