printf -> dprintf, except one.
This commit is contained in:
1 parent
58f7e7198c
commit
6224ecc274
1 file changed
+5
-9
@@ -46,10 +46,8 @@ extern unsigned *passed_atags;
|
||||
void bootlinux_direct(void *kernel, unsigned machtype, unsigned *tags)
|
||||
{
|
||||
void (*entry)(unsigned,unsigned,unsigned*) = kernel;
|
||||
// TODO: clear up this place, removing printf and that ugly thread_sleep!
|
||||
printf("tags: 0x%08x\n", tags);
|
||||
printf("entering critical section\n");
|
||||
thread_sleep(2000);
|
||||
dprintf(INFO, "tags: 0x%08x\n", tags);
|
||||
dprintf(INFO, "entering critical section\n");
|
||||
enter_critical_section();
|
||||
|
||||
/*
|
||||
@@ -76,13 +74,10 @@ void bootlinux_atags(void *kernel, unsigned *tags,
|
||||
const char *cmdline, unsigned machtype,
|
||||
void *ramdisk, unsigned ramdisk_size)
|
||||
{
|
||||
// TODO: clean up this place too.
|
||||
unsigned *ptr = tags;
|
||||
int cmdline_len = 0;
|
||||
int have_cmdline = 0;
|
||||
|
||||
printf("test\n");
|
||||
|
||||
/*
|
||||
* ATAG_CORE
|
||||
*
|
||||
@@ -163,7 +158,7 @@ void bootlinux_atags(void *kernel, unsigned *tags,
|
||||
*ptr++ = 0;
|
||||
*ptr++ = 0;
|
||||
check_atags(tags);
|
||||
printf("calling bootlinux_direct...\n");
|
||||
dprintf(INFO, "calling bootlinux_direct...\n");
|
||||
bootlinux_direct(kernel, machtype, (unsigned *)tags);
|
||||
}
|
||||
|
||||
@@ -196,7 +191,8 @@ unsigned bootlinux_uimage_mem(void *data, unsigned len, void (*callback)(),
|
||||
&kernel_addr, &ramdisk_addr, &ramdisk_size)) {
|
||||
return 1;
|
||||
} else {
|
||||
printf("kernel_load 0x%08x\nkernel_addr 0x%08x\nkernel_size %d\nkernel_ep 0x%08x\n", kernel_load, kernel_addr, kernel_size, kernel_ep);
|
||||
printf("OK!\n");
|
||||
dprintf(INFO, "kernel_load 0x%08x\nkernel_addr 0x%08x\nkernel_size %d\nkernel_ep 0x%08x\n", kernel_load, kernel_addr, kernel_size, kernel_ep);
|
||||
}
|
||||
|
||||
if (!kernel_size) {
|
||||
|
||||
Reference in new issue
Block a user