From 41d1d8adfe20e76de3af966fd9ec267fbedb5a5a Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Tue, 10 Feb 2009 13:54:17 +1100 Subject: [PATCH] phandle != int in prom.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- second/prom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2