Skip to content

Commit

Permalink
Merge branch 'master_rw_eeprom' of github.com:Junchao-Mellanox/sonic-…
Browse files Browse the repository at this point in the history
…utilities into master_rw_eeprom
  • Loading branch information
Junchao-Mellanox committed Oct 20, 2023
2 parents e5bcf09 + 782efc1 commit 3c5211e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sfputil/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,10 +799,10 @@ def convert_byte_to_valid_ascii_char(byte):
else:
return chr(byte)

def hexdump(indent, data, mem_address):
def hexdump(indent, data, mem_address, start_newline=True):
size = len(data)
offset = 0
lines = ['']
lines = [''] if start_newline else []
while size > 0:
offset_str = "{}{:08x}".format(indent, mem_address)
if size >= 16:
Expand Down

0 comments on commit 3c5211e

Please sign in to comment.