aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/vppapigen/vppapigen_c.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2021-05-06 14:09:50 +0200
committerDamjan Marion <dmarion@me.com>2021-05-06 14:19:55 +0000
commit2c4acdd8d47a14867d9658debc674323efc78323 (patch)
tree4685a71f7939e7297219181901a70b11d4d15928 /src/tools/vppapigen/vppapigen_c.py
parenta606d92107d4bf0107c3f54e2c87d39311f82075 (diff)
vlib: rename vl_counter_t to vlib_error_desc_t
Type: improvement Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I368b0410db2d633d3c52199c840e24d21952c1b4
Diffstat (limited to 'src/tools/vppapigen/vppapigen_c.py')
-rw-r--r--src/tools/vppapigen/vppapigen_c.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/vppapigen/vppapigen_c.py b/src/tools/vppapigen/vppapigen_c.py
index ba083499852..b298c3334de 100644
--- a/src/tools/vppapigen/vppapigen_c.py
+++ b/src/tools/vppapigen/vppapigen_c.py
@@ -1210,7 +1210,7 @@ def generate_include_counters(s, stream):
write(' {}_N_ERROR\n'.format(csetname.upper()))
write('}} vl_counter_{}_enum_t;\n'.format(csetname))
- write('extern vl_counter_t {}_error_counters[];\n'.format(csetname))
+ write('extern vlib_error_desc_t {}_error_counters[];\n'.format(csetname))
def generate_include_types(s, module, stream):
@@ -1373,7 +1373,7 @@ def generate_c_boilerplate(services, defines, counters, file_crc,
for cnt in counters:
csetname = cnt.name
- write('vl_counter_t {}_error_counters[] = {{\n'.format(csetname))
+ write('vlib_error_desc_t {}_error_counters[] = {{\n'.format(csetname))
for c in cnt.block:
write(' {\n')
write(' .name = "{}",\n'.format(c['name']))