From fb1146f2458ff447e3f5d9ec40de4ce7aa21c79f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 29 Jan 2004 21:50:00 +0000 Subject: [PATCH] Improved debug output; added thread information. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6413 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../kernel/file_systems/bfs/bfs_shell/Debug.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tests/add-ons/kernel/file_systems/bfs/bfs_shell/Debug.h b/src/tests/add-ons/kernel/file_systems/bfs/bfs_shell/Debug.h index 938f40a500..6540238dcf 100644 --- a/src/tests/add-ons/kernel/file_systems/bfs/bfs_shell/Debug.h +++ b/src/tests/add-ons/kernel/file_systems/bfs/bfs_shell/Debug.h @@ -55,13 +55,13 @@ #define dprintf printf #ifdef DEBUG - #define PRINT(x) { __out("bfs: "); __out x; } - #define REPORT_ERROR(status) __out("bfs: %s:%s:%ld: %s\n", __FILE__, __FUNCTION__, __LINE__, strerror(status)); + #define PRINT(x) { __out("bfs@%ld: ", find_thread(NULL)); __out x; } + #define REPORT_ERROR(status) __out("bfs@%ld: %s:%s:%d: %s\n", find_thread(NULL), __FILE__, __FUNCTION__, __LINE__, strerror(status)); #define RETURN_ERROR(err) { status_t _status = err; if (_status < B_OK) REPORT_ERROR(_status); return _status;} - #define FATAL(x) { __out("bfs: "); __out x; } - #define INFORM(x) { __out("bfs: "); __out x; } - #define FUNCTION() __out("bfs: %s()\n",__FUNCTION__); - #define FUNCTION_START(x) { __out("bfs: %s() ",__FUNCTION__); __out x; } + #define FATAL(x) { __out("bfs@%ld: ", find_thread(NULL)); __out x; } + #define INFORM(x) { __out("bfs@%ld: ", find_thread(NULL)); __out x; } + #define FUNCTION() __out("bfs@%ld: %s:%s()\n", find_thread(NULL), __FILE__, __FUNCTION__); + #define FUNCTION_START(x) { __out("bfs@%ld: %s:%s() ", find_thread(NULL), __FILE__, __FUNCTION__); __out x; } // #define FUNCTION() ; // #define FUNCTION_START(x) ; #define D(x) {x;};