From 730036e22e2b2b899be6a5177e3bf73b425fe1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 20 Apr 2004 01:36:12 +0000 Subject: [PATCH] Improved debug output. start_kernel() now panics, so that we don't run through (since it doesn't actually jump to the kernel yet). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7256 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/loader/loader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/kernel/boot/loader/loader.cpp b/src/kernel/boot/loader/loader.cpp index d63de9e8fa..c1fc86188b 100644 --- a/src/kernel/boot/loader/loader.cpp +++ b/src/kernel/boot/loader/loader.cpp @@ -1,5 +1,5 @@ /* -** Copyright 2003, 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. */ @@ -59,11 +59,12 @@ load_kernel(stage2_args *args, Directory *volume) close(fd); if (status < B_OK) { - printf("loading kernel failed!\n"); + printf("loading kernel failed: %ld!\n", status); return status; } puts("kernel loaded successfully"); + /* void *cookie; if (volume->Open(&cookie, O_RDONLY) == B_OK) { char name[B_FILE_NAME_LENGTH]; @@ -106,5 +107,6 @@ void start_kernel() { // shouldn't return... + panic("starting the kernel is not yet implemented :)"); }