]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net/phy/cortina: Fix compilation warning
authorpankaj chauhan <pankaj.chauhan@freescale.com>
Sat, 21 Mar 2015 02:28:17 +0000 (19:28 -0700)
committerYork Sun <yorksun@freescale.com>
Thu, 23 Apr 2015 15:55:57 +0000 (08:55 -0700)
Fix comilation warning which is emitted when
firmware address is more than 32 bit.

Signed-off-by: pankaj chauhan <pankaj.chauhan@freescale.com>
Signed-off-by: York Sun <yorksun@freescale.com>
drivers/net/phy/cortina.c

index 254f056df42266b80e5dc2bf4bebe43bdd60c67e..3a2b3bba995282ebd8a96fb61d9ad742df5c246b 100644 (file)
@@ -186,8 +186,8 @@ void cs4340_upload_firmware(struct phy_device *phydev)
                while (*addr != 0x0a) {
                        line_temp[i++] = *addr++;
                        if (0x50 < i) {
-                               printf("Not found Cortina PHY ucode at 0x%x\n",
-                                      CONFIG_CORTINA_FW_ADDR);
+                               printf("Not found Cortina PHY ucode at 0x%p\n",
+                                      (char *)CONFIG_CORTINA_FW_ADDR);
                                return;
                        }
                }