aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2007-05-23 19:35:29 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2007-05-23 19:35:29 +0000
commite6e55fd517832c5d2914ca2cfb958bfd626baca8 (patch)
treedeedf81ae0a2361c599f628701201bb56ceabb79 /tools
parentf4f8079986f5a7288b02d1944107d584e9b16d62 (diff)
small fix in duplicate type warning
svn path=/trunk/; revision=21911
Diffstat (limited to 'tools')
-rwxr-xr-xtools/asn2wrs.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index 37b6342133..4e77b83aab 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -1532,11 +1532,8 @@ class EthCtx:
for t in tmplist:
msg = "The same type names for different types. Explicit type renaming is recommended.\n"
msg += t + "\n"
- x = ''
for tt in self.eth_type_dupl[t]:
- msg += " %-20s %s\n" % (t+str(x), tt)
- if not x: x = 1
- else: x += 1
+ msg += " %-20s %s\n" % (self.type[tt]['ethname'], tt)
warnings.warn_explicit(msg, UserWarning, '', '')
# fields
tmplist = self.eth_hf_dupl.keys()