btrfs: btrfs_shell build errors fixed
Change-Id: I05c4d489f9227b94c00648c7a22569b2902ef325 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6309 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
3e37877f10
commit
b5ff580afb
@@ -24,6 +24,12 @@
|
|||||||
#define INFORM(x...) TRACE(x)
|
#define INFORM(x...) TRACE(x)
|
||||||
#define init_debugging()
|
#define init_debugging()
|
||||||
#define exit_debugging()
|
#define exit_debugging()
|
||||||
|
#define FUNCTION() dprintf("btrfs: %s()\n",__FUNCTION__);
|
||||||
|
#define REPORT_ERROR(status) \
|
||||||
|
dprintf("btrfs: %s:%d: %s\n", __FUNCTION__, __LINE__, strerror(status));
|
||||||
|
#define RETURN_ERROR(err) \
|
||||||
|
{ status_t _status = err; if (_status < B_OK) REPORT_ERROR(_status); return _status;}
|
||||||
|
#define PRINT(x) { dprintf("btrfs: "); dprintf x; }
|
||||||
#else
|
#else
|
||||||
#include <DebugSupport.h>
|
#include <DebugSupport.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user