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
This commit is contained in:
parent
8bd36612dc
commit
fa7ec9d4e9
@ -1,6 +1,6 @@
|
|||||||
/* Debug - debug stuff
|
/* 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.
|
* This file may be used under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef DEBUG_H
|
#ifndef DEBUG_H
|
||||||
@ -71,7 +71,7 @@
|
|||||||
#define PRINT(x) ;
|
#define PRINT(x) ;
|
||||||
#define REPORT_ERROR(status) ;
|
#define REPORT_ERROR(status) ;
|
||||||
#define RETURN_ERROR(status) return 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 INFORM(x) { __out("bfs: "); __out x; }
|
||||||
#define FUNCTION() ;
|
#define FUNCTION() ;
|
||||||
#define FUNCTION_START(x) ;
|
#define FUNCTION_START(x) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user