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 years ago
parent
commit
2652a6219f
1 changed files with 1 additions and 1 deletions
  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 */
 				/* Found a valid PHY address */
 				priv->phyaddr = i;
 				priv->phyaddr = i;
 				debug("axiemac: Found valid phy address, %x\n",
 				debug("axiemac: Found valid phy address, %x\n",
-									phyreg);
+				      i);
 				break;
 				break;
 			}
 			}
 		}
 		}