diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-04-10 16:20:14 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-04-10 16:53:11 +0100 |
commit | b02d1e52db310aaa41fd0bff0d6244a8cfb9c8a5 (patch) | |
tree | 0cd2e4b66f594d9ee0f725bf529ab501e8230ea9 | |
parent | 7de92888ba73bad6f22b0163e2c4afd4950883f2 (diff) |
mii-diag: add PHY id and address to read failure error message
Add the PHY ID and address to the read failure error message.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r-- | mii-diag.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -411,8 +411,8 @@ int mdio_read(int skfd, int phy_id, int location) data[1] = location; if (ioctl(skfd, new_ioctl_nums ? 0x8948 : SIOCDEVPRIVATE+1, &ifr) < 0) { - fprintf(stderr, "SIOCGMIIREG on %s failed: %s\n", ifr.ifr_name, - strerror(errno)); + fprintf(stderr, "SIOCGMIIREG on %s (phy_id 0x%x addr 0x%x) failed: %s\n", + ifr.ifr_name, phy_id, location, strerror(errno)); return -1; } return data[3]; |