From fa7ec9d4e9465e03ecc30466fd7b39675759041c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 26 May 2005 08:02:07 +0000 Subject: [PATCH] FATAL() now does a sync() before it panics, so that the on disk data is up to date for later inspection. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12824 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Debug.h b/src/add-ons/kernel/file_systems/bfs/Debug.h index 6d334d2799..8a55e2b221 100644 --- a/src/add-ons/kernel/file_systems/bfs/Debug.h +++ b/src/add-ons/kernel/file_systems/bfs/Debug.h @@ -1,6 +1,6 @@ /* Debug - debug stuff * - * Copyright 2001-2004, Axel Dörfler, axeld@pinc-software.de. + * Copyright 2001-2005, Axel Dörfler, axeld@pinc-software.de. * This file may be used under the terms of the MIT License. */ #ifndef DEBUG_H @@ -71,7 +71,7 @@ #define PRINT(x) ; #define REPORT_ERROR(status) ; #define RETURN_ERROR(status) return status; - #define FATAL(x) { __out("bfs: "); __out x; panic("BFS!\n"); } + #define FATAL(x) { __out("bfs: "); __out x; sync(); panic("BFS!\n"); } #define INFORM(x) { __out("bfs: "); __out x; } #define FUNCTION() ; #define FUNCTION_START(x) ;