From b487348fb3688131fddae531b57b5855f8897681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 3 Nov 2004 02:13:18 +0000 Subject: [PATCH] Now only use dprintf() for debug output. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9746 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/loader/loader.cpp | 7 +++---- src/kernel/boot/loader/main.cpp | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/kernel/boot/loader/loader.cpp b/src/kernel/boot/loader/loader.cpp index 5c38ece913..2475f19c0d 100644 --- a/src/kernel/boot/loader/loader.cpp +++ b/src/kernel/boot/loader/loader.cpp @@ -1,6 +1,6 @@ /* ** 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) return fd; - puts("load kernel..."); + dprintf("load kernel...\n"); status_t status = elf_load_image(fd, &gKernelArgs.kernel_image); close(fd); if (status < B_OK) { - printf("loading kernel failed: %ld!\n", status); + dprintf("loading kernel failed: %ld!\n", status); return status; } - puts("kernel loaded successfully"); return B_OK; } diff --git a/src/kernel/boot/loader/main.cpp b/src/kernel/boot/loader/main.cpp index f624535458..3c4356c609 100644 --- a/src/kernel/boot/loader/main.cpp +++ b/src/kernel/boot/loader/main.cpp @@ -18,7 +18,7 @@ //#define TRACE_MAIN #ifdef TRACE_MAIN -# define TRACE(x) printf x +# define TRACE(x) dprintf x #else # define TRACE(x) ; #endif @@ -44,7 +44,7 @@ main(stage2_args *args) if (vfs_init(args) < B_OK) panic("Could not initialize VFS!\n"); - puts("Welcome to the Haiku boot loader!"); + dprintf("Welcome to the Haiku boot loader!\n"); bool mountedAllVolumes = false;