From 0ccfc3ca2957670c309142ac5972c88b8a67d552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 11 Sep 2003 18:58:37 +0000 Subject: [PATCH] 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 --- src/kernel/boot/loader/main.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/kernel/boot/loader/main.cpp b/src/kernel/boot/loader/main.cpp index c578a65aea..e682bd3a54 100644 --- a/src/kernel/boot/loader/main.cpp +++ b/src/kernel/boot/loader/main.cpp @@ -13,14 +13,23 @@ #include +#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.