phandle != int in prom.c
authorTony Breeds <tony@bakeyournoodle.com>
Tue, 10 Feb 2009 02:54:17 +0000 (13:54 +1100)
committerTony Breeds <tony@bakeyournoodle.com>
Tue, 18 Oct 2011 04:11:10 +0000 (15:11 +1100)
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 <tony@bakeyournoodle.com>
second/prom.c

index 784994d..51870d9 100644 (file)
@@ -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;
      }