From: Tony Breeds Date: Tue, 10 Feb 2009 02:54:17 +0000 (+1100) Subject: phandle != int in prom.c X-Git-Tag: yaboot-1.3.17~9 X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=commitdiff_plain;h=41d1d8adfe20e76de3af966fd9ec267fbedb5a5a phandle != int in prom.c GCC this pointed out: second/prom.c: In function ‘prom_get_netinfo’: second/prom.c:692: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘prom_handle’ Signed-off-by: Tony Breeds --- diff --git a/second/prom.c b/second/prom.c index 784994d..51870d9 100644 --- a/second/prom.c +++ b/second/prom.c @@ -715,7 +715,7 @@ struct bootp_packet * prom_get_netinfo (void) chosen = prom_finddevice("/chosen"); if (chosen < 0) { - DEBUG_F("chosen=%d\n", chosen); + DEBUG_F("chosen=%lu\n", (unsigned long)chosen); return 0; }