From 8e8bb15a1b1fab7f2f7caaacee8fbccc6b46355f Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Thu, 1 Dec 2011 23:03:00 +0100 Subject: [PATCH] Improved corruption panic message in initrd.cpp --- sortix/initrd.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sortix/initrd.cpp b/sortix/initrd.cpp index 8e5c1e7e..51cd0986 100644 --- a/sortix/initrd.cpp +++ b/sortix/initrd.cpp @@ -119,8 +119,9 @@ namespace Sortix if ( trailer->sum != checksum ) { PanicF("InitRD Checksum failed: the ramdisk may have been " - "corrupted by the bootloader: Got %u instead of %u\n", - checksum, trailer->sum); + "corrupted by the bootloader: Got %u instead of %u " + "when checking the ramdisk at 0x%p + 0x%zx bytes\n", + checksum, trailer->sum, initrd, initrdsize); } Syscall::Register(SYSCALL_PRINT_PATH_FILES, (void*) SysPrintPathFiles);