summaryrefslogtreecommitdiffstats
path: root/src/broadcom
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-12-28 13:51:36 -0800
committerEric Anholt <[email protected]>2018-01-12 21:51:34 -0800
commit7dedfd9660779c11110aaffdf2a7a85da628ac52 (patch)
treea86d106c44ad91238fe0510d47d4ab4a013ad9ac /src/broadcom
parent3d8ad5037054a18ca3b169de20874e8919cca1fa (diff)
broadcom/cle: Fix error path of missing a "type" in the XML.
We try to emit a #error and continue so that you can debug the missing type at C compile time, but were missing a couple of definitions in that path (sigh, python).
Diffstat (limited to 'src/broadcom')
-rw-r--r--src/broadcom/cle/gen_pack_header.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/broadcom/cle/gen_pack_header.py b/src/broadcom/cle/gen_pack_header.py
index a23b69b6758..e5762762b23 100644
--- a/src/broadcom/cle/gen_pack_header.py
+++ b/src/broadcom/cle/gen_pack_header.py
@@ -166,6 +166,7 @@ class Field(object):
return
else:
print("#error unhandled type: %s" % self.type)
+ type = "uint32_t"
print(" %-36s %s%s;" % (type, self.name, dim))
@@ -362,7 +363,7 @@ class Group(object):
args.append(str(field.fractional_size))
convert = "__gen_unpack_sfixed"
else:
- print("/* unhandled field %s, type %s */\n" % (name, field.type))
+ print("/* unhandled field %s, type %s */\n" % (field.name, field.type))
s = None
print(" values->%s = %s(%s);" % \