btrfs: btrfs_shell build errors fixed

Change-Id: I05c4d489f9227b94c00648c7a22569b2902ef325
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6309
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
vaibhavg20comp 2023-04-07 11:26:44 +05:30 committed by Adrien Destugues
parent 3e37877f10
commit b5ff580afb

View File

@ -24,6 +24,12 @@
#define INFORM(x...) TRACE(x)
#define init_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
#include <DebugSupport.h>
#endif