qsf: Better handling of Page A2h netlink read failure
Print "Failed to read Page A2h." error message to provide more context
for "netlink error: (...)" info.
Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>
diff --git a/sfpid.c b/sfpid.c
index 1bc45c1..d9bda70 100644
--- a/sfpid.c
+++ b/sfpid.c
@@ -494,8 +494,10 @@
/* Read A2h page */
ret = sff8079_get_eeprom_page(ctx, SFF8079_I2C_ADDRESS_HIGH,
buf + ETH_MODULE_SFF_8079_LEN);
- if (ret)
+ if (ret) {
+ fprintf(stderr, "Failed to read Page A2h.\n");
goto out;
+ }
sff8472_show_all(buf);
out: