Commit dd22c4b2 authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

sw: Small change in sfp_eeprom.py

The change is to output to the .inf file the SFP EPPROM in "capital"
hexadecimal, i.e., 0x%02X instead of 0x%02x. This was done to keep to the rest
of the test scripts' outputs.
parent 46d73ae9
......@@ -49,6 +49,7 @@
# Import system modules
import sys
sys.path.append("pyts")
import time
import os
......@@ -211,9 +212,9 @@ def main(bus,tname,inf,log):
type = eeprom.rd_reg8(0x0);
if (type == 0x03):
inf.write("SFP type is correct: 0x%02x\n" % type)
inf.write("SFP type is correct: 0x%02X\n" % type)
else:
msg = "ERROR: SFP-EEPROM: Wrong connector type (0x%02x) - expected 0x03." % type
msg = "ERROR: SFP-EEPROM: Wrong connector type (0x%02X) - expected 0x03." % type
pel.set(msg)
return pel.get()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment