Added TRACE() macro to be able to make the loader more silent.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4624 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9225f27c04
commit
0ccfc3ca29
@ -13,14 +13,23 @@
|
||||
#include <util/kernel_cpp.h>
|
||||
|
||||
|
||||
#define TRACE_MAIN 0
|
||||
#if TRACE_MAIN
|
||||
# define TRACE(x) printf x
|
||||
#else
|
||||
# define TRACE(x) ;
|
||||
#endif
|
||||
|
||||
|
||||
extern "C" int
|
||||
boot(stage2_args *args)
|
||||
{
|
||||
puts("Oh yes, we are\n");
|
||||
TRACE(("boot(): enter\n"));
|
||||
|
||||
if (heap_init(args) < B_OK)
|
||||
panic("Could not initialize heap!\n");
|
||||
|
||||
puts("heap initialized...");
|
||||
TRACE(("boot(): heap initialized...\n"));
|
||||
|
||||
// the main platform dependent initialisation
|
||||
// has already taken place at this point.
|
||||
|
Loading…
Reference in New Issue
Block a user