From: Becky Bruce Date: Thu, 1 May 2008 23:15:45 +0000 (-0500) Subject: [POWERPC] Squash build warning for print of resource_size_t in fsl_soc.c X-Git-Tag: v2.6.26-rc1~7^2~6^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=128cf7f2eb952a85875834c0d274da05ee0f02aa;p=linux-2.6-omap-h63xx.git [POWERPC] Squash build warning for print of resource_size_t in fsl_soc.c When resource_size_t is larger than an int, the current code generates a build warning. Kill it. Signed-off-by: Becky Bruce Signed-off-by: Kumar Gala --- diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index 7b45670c7af..b59408798fd 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c @@ -389,8 +389,8 @@ static int __init gfar_of_init(void) } gfar_data.phy_id = *id; - snprintf(gfar_data.bus_id, MII_BUS_ID_SIZE, "%x", - res.start); + snprintf(gfar_data.bus_id, MII_BUS_ID_SIZE, "%llx", + (unsigned long long)res.start); of_node_put(phy); of_node_put(mdio);