From d58de9b76df5d3ec6a07e56b8130312589f83281 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Fri, 2 Dec 2016 00:03:56 -0500 Subject: [PATCH] bees: introduce BEESLOGNOTE macro Quite often we have the same message in BEESLOG and BEESNOTE, so make a macro to combine them. --- src/bees.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bees.h b/src/bees.h index 9ba080a..c823bea 100644 --- a/src/bees.h +++ b/src/bees.h @@ -136,6 +136,8 @@ const int FLAGS_OPEN_FANOTIFY = O_RDWR | O_NOATIME | O_CLOEXEC | O_LARGEFILE; } \ } while (0) +#define BEESLOGNOTE(x) BEESLOG(x); BEESNOTE(x) + #define BEESCOUNT(stat) do { \ BeesStats::s_global.add_count(#stat); \ } while (0)