diff options
Diffstat (limited to 'release')
-rwxr-xr-x[-rw-r--r--] | release/datafiles/ctodata.py | 6 | ||||
-rwxr-xr-x | release/datafiles/datatoc.py | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/release/datafiles/ctodata.py b/release/datafiles/ctodata.py index 2d2daabb661..74bcc586baa 100644..100755 --- a/release/datafiles/ctodata.py +++ b/release/datafiles/ctodata.py @@ -48,10 +48,14 @@ data = bytes([int(v) for v in data]) dname = filename + ".ctodata" +sys.stdout.write("Making DATA file <%s>\n" % dname) + try: fpout = open(dname, "wb") except: sys.stdout.write("Unable to open output %s\n" % dname) sys.exit(1) -fpout.write(data) +size = fpout.write(data) + +sys.stdout.write("%d\n" % size) diff --git a/release/datafiles/datatoc.py b/release/datafiles/datatoc.py index 9db77544c03..f1fce08d7dd 100755 --- a/release/datafiles/datatoc.py +++ b/release/datafiles/datatoc.py @@ -53,8 +53,8 @@ sys.stdout.write("Making C file <%s>\n" % cname) filename = filename.split("/")[-1].split("\\")[-1] filename = filename.replace(".", "_") -sys.stdout.write(str(size)) -sys.stdout.write("\n") +sys.stdout.write("%d\n" % size) + try: fpout = open(cname, "w") except: |