diff --git a/userspace/libwr/i2c_sfp.c b/userspace/libwr/i2c_sfp.c index fdeb1c5fefcf42ceb5d2a65fab4005a507b17915..d5a364d16befbb40713afc5ec2091342785e6845 100644 --- a/userspace/libwr/i2c_sfp.c +++ b/userspace/libwr/i2c_sfp.c @@ -336,7 +336,7 @@ void shw_sfp_print_header(struct shw_sfp_header *head) printf("%c", head->vendor_rev[i]); printf("\n"); printf("TX Wavelength: %d\n", getSfpTxWaveLength(head)); - printf("Options: %04X\n", ((uint16_t *) head->options)[0]); + printf("Options: 0x%04X\n", head->options[0] << 8 | head->options[1]); printf("Bitrate (MAX): %02X\n", head->br_max); printf("Bitrate (MIN): %02X\n", head->br_min); printf("Vendor Serial: ");