Now only use dprintf() for debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9746 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ec5d706492
commit
b487348fb3
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
** Distributed under the terms of the Haiku License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -62,18 +62,17 @@ load_kernel(stage2_args *args, Directory *volume)
|
|||||||
if (fd < B_OK)
|
if (fd < B_OK)
|
||||||
return fd;
|
return fd;
|
||||||
|
|
||||||
puts("load kernel...");
|
dprintf("load kernel...\n");
|
||||||
|
|
||||||
status_t status = elf_load_image(fd, &gKernelArgs.kernel_image);
|
status_t status = elf_load_image(fd, &gKernelArgs.kernel_image);
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
if (status < B_OK) {
|
if (status < B_OK) {
|
||||||
printf("loading kernel failed: %ld!\n", status);
|
dprintf("loading kernel failed: %ld!\n", status);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
puts("kernel loaded successfully");
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
//#define TRACE_MAIN
|
//#define TRACE_MAIN
|
||||||
#ifdef TRACE_MAIN
|
#ifdef TRACE_MAIN
|
||||||
# define TRACE(x) printf x
|
# define TRACE(x) dprintf x
|
||||||
#else
|
#else
|
||||||
# define TRACE(x) ;
|
# define TRACE(x) ;
|
||||||
#endif
|
#endif
|
||||||
@ -44,7 +44,7 @@ main(stage2_args *args)
|
|||||||
if (vfs_init(args) < B_OK)
|
if (vfs_init(args) < B_OK)
|
||||||
panic("Could not initialize VFS!\n");
|
panic("Could not initialize VFS!\n");
|
||||||
|
|
||||||
puts("Welcome to the Haiku boot loader!");
|
dprintf("Welcome to the Haiku boot loader!\n");
|
||||||
|
|
||||||
bool mountedAllVolumes = false;
|
bool mountedAllVolumes = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user