summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/include/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/include/error.h')
-rw-r--r--src/third_party/wiredtiger/src/include/error.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/src/include/error.h b/src/third_party/wiredtiger/src/include/error.h
index 76c644a2850..39cce1e5b34 100644
--- a/src/third_party/wiredtiger/src/include/error.h
+++ b/src/third_party/wiredtiger/src/include/error.h
@@ -166,6 +166,9 @@
} while (0)
#endif
+/* Verbose messages. */
+#define WT_VERBOSE_ISSET(session, flag) (FLD_ISSET(S2C(session)->verbose, flag))
+
/*
* __wt_verbose --
* Display a verbose message. Not an inlined function because you can't inline functions taking
@@ -174,8 +177,8 @@
* additional argument, there's no portable way to remove the comma before an empty __VA_ARGS__
* value.
*/
-#define __wt_verbose(session, flag, fmt, ...) \
- do { \
- if (WT_VERBOSE_ISSET(session, flag)) \
- __wt_verbose_worker(session, fmt, __VA_ARGS__); \
+#define __wt_verbose(session, flag, fmt, ...) \
+ do { \
+ if (WT_VERBOSE_ISSET(session, flag)) \
+ __wt_verbose_worker(session, "[" #flag "] " fmt, __VA_ARGS__); \
} while (0)