Skip to content

Commit

Permalink
Fix index out of range in the error log of invalid media lane mask re…
Browse files Browse the repository at this point in the history
…ceived (#386)

Signed-off-by: Michael Wang <michaelwang@supermicro.com.tw>
  • Loading branch information
MichaelWangSmci authored Jul 14, 2023
1 parent d73808c commit db6e340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic-xcvrd/xcvrd/xcvrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1530,8 +1530,8 @@ def task_worker(self):
appl, lport, subport)
if self.port_dict[lport]['media_lanes_mask'] <= 0:
self.log_error("{}: Invalid media lane mask received - media_lane_count {} "
"media_lane_assignment_options {} lport{} subport {}"
" appl {}!".format(media_lane_count,media_lane_assignment_options,lport,subport,appl))
"media_lane_assignment_options {} subport {}"
" appl {}!".format(lport, media_lane_count, media_lane_assignment_options, subport, appl))
self.port_dict[lport]['cmis_state'] = self.CMIS_STATE_FAILED
continue
media_lanes_mask = self.port_dict[lport]['media_lanes_mask']
Expand Down

0 comments on commit db6e340

Please sign in to comment.