Browse Source

net: axi_emac: Show phy address instead of register content

Fix debug message.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Michal Simek 9 năm trước cách đây
mục cha
commit
2652a6219f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/net/xilinx_axi_emac.c

+ 1 - 1
drivers/net/xilinx_axi_emac.c

@@ -243,7 +243,7 @@ static int setup_phy(struct eth_device *dev)
 				/* Found a valid PHY address */
 				priv->phyaddr = i;
 				debug("axiemac: Found valid phy address, %x\n",
-									phyreg);
+				      i);
 				break;
 			}
 		}