Skip to content

Commit

Permalink
Removing null characters while decoding from syseeprom (#338)
Browse files Browse the repository at this point in the history
Signed-off-by: Mihir Patel <patelmi@microsoft.com>
  • Loading branch information
mihirpat1 authored Dec 19, 2022
1 parent 32c0031 commit 676b329
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ def decoder(self, s, t):
value = ""
for c in t[2:2 + t[1]]:
value += "0x%02X " % c
value = value.replace('\x00', '')
return name, value


Expand Down

0 comments on commit 676b329

Please sign in to comment.