diff options
author | Wei Liu <liuw@liuw.name> | 2011-07-19 16:02:36 +0100 |
---|---|---|
committer | Wei Liu <liuw@liuw.name> | 2011-07-19 16:02:36 +0100 |
commit | 1b86994afeb2a7f751fc3d01a83573d7a002db0c (patch) | |
tree | eabe62c18b1d8711204f5286ef5f101c4495aa1d /tools/libxl/gentest.py | |
parent | b2c448b55c7f31c9b18a02630cc6c9852afdfebc (diff) | |
download | xen-1b86994afeb2a7f751fc3d01a83573d7a002db0c.tar.gz xen-1b86994afeb2a7f751fc3d01a83573d7a002db0c.tar.bz2 xen-1b86994afeb2a7f751fc3d01a83573d7a002db0c.zip |
libxl: clean up trailing whitespaces in code.
Commit exactly the results of running
find \! -iname '*.txt' -type f -print0 | xargs -0 perl -p -i.bak -E 's/\s+\n/\n/'
Signed-off-by: Wei Liu <liuw@liuw.name>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/gentest.py')
-rw-r--r-- | tools/libxl/gentest.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/libxl/gentest.py b/tools/libxl/gentest.py index 5828cfd17a..47c7f0b4ae 100644 --- a/tools/libxl/gentest.py +++ b/tools/libxl/gentest.py @@ -21,10 +21,10 @@ if __name__ == '__main__': sys.exit(1) random.seed() - + idl = sys.argv[1] (_,types) = libxltypes.parse(idl) - + impl = sys.argv[2] f = open(impl, "w") f.write(""" @@ -39,7 +39,7 @@ int main(int argc, char **argv) f.write(" %s %s_val;\n" % (ty.typename, ty.typename)) f.write(" int rc;\n") f.write("\n") - + for ty in [t for t in types if isinstance(t,libxltypes.Enumeration)]: f.write(" printf(\"%s -- to string:\\n\");\n" % (ty.typename)) for v in ty.values: @@ -53,7 +53,7 @@ int main(int argc, char **argv) f.write(" %s_val = -1;\n" % (ty.typename)) f.write(" rc = %s_from_string(\"%s\", &%s_val);\n" %\ (ty.typename, n, ty.typename)) - + f.write(" printf(\"\\t%s = \\\"%%s\\\" = %%d (rc %%d)\\n\", \"%s\", %s_val, rc);\n" %\ (v, n, ty.typename)) f.write("\n") |