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);
}
void
-prom_vfprintf (prom_handle file, char *fmt, va_list ap)
+prom_vfprintf (prom_handle file, const char *fmt, va_list ap)
{
static char printf_buf[2048];
vsprintf (printf_buf, fmt, ap);
}
void
-prom_vprintf (char *fmt, va_list ap)
+prom_vprintf (const char *fmt, va_list ap)
{
static char printf_buf[2048];
vsprintf (printf_buf, fmt, ap);
}
void
-prom_fprintf (prom_handle file, char *fmt, ...)
+prom_fprintf (prom_handle file, const char *fmt, ...)
{
va_list ap;
va_start (ap, fmt);
}
void
-prom_printf (char *fmt, ...)
+prom_printf (const char *fmt, ...)
{
va_list ap;
va_start (ap, fmt);
}
void
-prom_debug (char *fmt, ...)
+prom_debug (const char *fmt, ...)
{
va_list ap;
chosen = prom_finddevice("/chosen");
if (chosen < 0) {
- DEBUG_F("chosen=%d\n", chosen);
+ DEBUG_F("chosen=%lu\n", (unsigned long)chosen);
return 0;
}