* [PATCH] Squash build warning for print of resource_size_t in fsl_soc.c
@ 2008-05-01 23:15 Becky Bruce
2008-05-02 4:06 ` Kumar Gala
0 siblings, 1 reply; 2+ messages in thread
From: Becky Bruce @ 2008-05-01 23:15 UTC (permalink / raw)
To: linuxppc-dev
When resource_size_t is larger than an int, the current code
generates a build warning. Kill it.
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
---
arch/powerpc/sysdev/fsl_soc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index 7b45670..b594087 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);
--
1.5.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Squash build warning for print of resource_size_t in fsl_soc.c
2008-05-01 23:15 [PATCH] Squash build warning for print of resource_size_t in fsl_soc.c Becky Bruce
@ 2008-05-02 4:06 ` Kumar Gala
0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2008-05-02 4:06 UTC (permalink / raw)
To: Becky Bruce; +Cc: linuxppc-dev
On May 1, 2008, at 6:15 PM, Becky Bruce wrote:
>
> When resource_size_t is larger than an int, the current code
> generates a build warning. Kill it.
>
> Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
> ---
> arch/powerpc/sysdev/fsl_soc.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
applied.
- k
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-02 4:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-01 23:15 [PATCH] Squash build warning for print of resource_size_t in fsl_soc.c Becky Bruce
2008-05-02 4:06 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).