]> git.ozlabs.org Git - yaboot.git/blobdiff - second/prom.c
Be explicit in order of evaluation in the reiserfs code
[yaboot.git] / second / prom.c
index fbadb2ac664632a9243fbaf4d44c9a6a273c466e..51870d910423e5147a0e2ed88e6e60d1739d2c7b 100644 (file)
@@ -196,7 +196,7 @@ prom_get_devtype (char *device)
      char       tmp[64];
 
      if (strstr(device, TOK_ISCSI))
-         device = strcpy(tmp, "/vdevice/gscsi/disk");
+         return FILE_DEVICE_ISCSI;
 
      /* Find OF device phandle */
      dev = prom_finddevice(device);
@@ -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;
      }