asn2wrs: Fix Type eth_type_default_body() arguments

Add tname as argument to Type eth_type_default_body() to fix a warning.

  Call to method Type.eth_type_default_body with too many arguments;
  should be no more than 1.
This commit is contained in:
Stig Bjørlykke 2021-11-09 10:47:46 +01:00 committed by Wireshark GitLab Utility
parent 5f50fad289
commit ebb2df7a06
1 changed files with 2 additions and 2 deletions

View File

@ -3375,8 +3375,8 @@ class Type (Node):
def eth_type_default_table(self, ectx, tname):
return ''
def eth_type_default_body(self, ectx):
print("#Unhandled eth_type_default_body() in %s" % (self.type))
def eth_type_default_body(self, ectx, tname):
print("#Unhandled eth_type_default_body('%s') in %s" % (tname, self.type))
print(self.str_depth(1))
return ''