target_dsp/bin2cfile.py: make it compatible with python3

Change-Id: I2659c2e4633bd120cc6cd76942eff5b66d2057bb
This commit is contained in:
Alexander Couzens 2019-07-11 16:09:21 +02:00
parent 37575534a4
commit 1fa8e29e69
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ def main(pn, filename):
name = filename.split('.',1)[0]
# Header / footer
print """
print("""
#define _SA_DECL (const uint16_t *)&(const uint16_t [])
static const struct dsp_section %s[] = {
@ -50,7 +50,7 @@ static const struct dsp_section %s[] = {
};
#undef _SA_DECL
""" % (name, len(d)/2, ops)
""" % (name, len(d)/2, ops))
if __name__ == "__main__":