summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-10-25 17:37:24 +0200
committerDavid Disseldorp <ddiss@samba.org>2017-10-25 22:28:39 +0200
commit2d260b28f50ea6ee704d9fab2aaf26f760fa110f (patch)
tree2315a1951be4612971d8c25372f3d358d153d362 /source4/scripting
parent7abe56ccfa4aba75c5e166a7bd0bb8141c3f258b (diff)
downloadsamba-2d260b28f50ea6ee704d9fab2aaf26f760fa110f.tar.gz
samba-2d260b28f50ea6ee704d9fab2aaf26f760fa110f.tar.bz2
samba-2d260b28f50ea6ee704d9fab2aaf26f760fa110f.zip
s4:scripting: Fix ntstatus_gen.h generation on 32bit
The hex() function results in different output on 32bit systems. It adds a L for long for some numbers. Thus we have a different header file. This patch makes sure we have a consistent file generation on different paltforms. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13099 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Wed Oct 25 22:28:39 CEST 2017 on sn-devel-144
Diffstat (limited to 'source4/scripting')
-rwxr-xr-xsource4/scripting/bin/gen_ntstatus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/gen_ntstatus.py b/source4/scripting/bin/gen_ntstatus.py
index 9e92f49fc1b..cace4c08ce5 100755
--- a/source4/scripting/bin/gen_ntstatus.py
+++ b/source4/scripting/bin/gen_ntstatus.py
@@ -32,7 +32,7 @@ def generateHeaderFile(out_file, errors):
out_file.write("#ifndef _NTSTATUS_GEN_H\n")
out_file.write("#define _NTSTATUS_GEN_H\n")
for err in errors:
- line = "#define %s NT_STATUS(%s)\n" % (err.err_define, hex(err.err_code))
+ line = "#define %s NT_STATUS(%#x)\n" % (err.err_define, err.err_code)
out_file.write(line)
out_file.write("\n#endif /* _NTSTATUS_GEN_H */\n")