U-Boot: fix warnings

This commit is contained in:
François Revol
2013-01-02 02:07:06 +01:00
parent d34a44470f
commit ef7bb168f7
4 changed files with 8 additions and 2 deletions
@@ -45,10 +45,12 @@ static SerialConsole sSerial;
FILE *stdin, *stdout, *stderr; FILE *stdin, *stdout, *stderr;
/*
static void static void
scroll_up() scroll_up()
{ {
} }
*/
// #pragma mark - // #pragma mark -
+1 -1
View File
@@ -28,7 +28,7 @@ platform_add_boot_device(struct stage2_args *args, NodeList *devicesList)
if (!args->platform.boot_tgz_data || !args->platform.boot_tgz_size) if (!args->platform.boot_tgz_data || !args->platform.boot_tgz_size)
return B_DEVICE_NOT_FOUND; return B_DEVICE_NOT_FOUND;
TRACE("Memory Disk at: %lx size: %lx\n", args->platform.boot_tgz_data, TRACE("Memory Disk at: %p size: %lx\n", args->platform.boot_tgz_data,
args->platform.boot_tgz_size); args->platform.boot_tgz_size);
MemoryDisk* disk = new(nothrow) MemoryDisk( MemoryDisk* disk = new(nothrow) MemoryDisk(
@@ -165,9 +165,13 @@ serial_init_fdt(const void *fdt)
|| fdt_node_check_compatible(fdt, node, "ns16550") == 1) { || fdt_node_check_compatible(fdt, node, "ns16550") == 1) {
gUART = arch_get_uart_8250(regs, clock); gUART = arch_get_uart_8250(regs, clock);
//dprintf("serial: using 8250\n"); //dprintf("serial: using 8250\n");
// XXX:assume speed is already set
(void)speed;
return; return;
} }
// for when we can use U-Boot's console
panic("Unknown UART type %s", type);
} }
+1 -1
View File
@@ -115,7 +115,7 @@ platform_start_kernel(void)
status_t error = arch_start_kernel(&gKernelArgs, kernelEntry, status_t error = arch_start_kernel(&gKernelArgs, kernelEntry,
stackTop); stackTop);
panic("kernel returned!\n"); panic("kernel returned %lx!\n", error);
} }