Skip to content

Commit

Permalink
[CMIS] Log get fw mgmt feature RPL check code result to provide clear…
Browse files Browse the repository at this point in the history
…er data when an error occurs

Signed-off-by: xinyu <[email protected]>
  • Loading branch information
xinyulin committed Aug 6, 2024
1 parent 7b098c7 commit 4d919c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_platform_base/sonic_xcvr/api/public/cmis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ def get_module_fw_mgmt_feature(self, verbose = False):
else:
txt += 'Status or reply payload check code error\n'
logger.info(txt)
logger.info('Fail to get fw mgnt feature, cdb status: 0x{}\n'.format(status))
logger.info('Fail to get fw mgmt feature, cdb status: {:#x}, cdb_chkcode: {:#x}, rpl_chkcode: {:#x}\n'.format(status, self.cdb.cdb_chkcode(rpl), rpl_chkcode))
return {'status': False, 'info': txt, 'feature': None}
elapsedtime = time.time()-starttime
logger.info('Get module FW upgrade features time: %.2f s\n' %elapsedtime)
Expand Down

0 comments on commit 4d919c8

Please sign in to comment.