procevent.c: add debug_prctl macro

See the next commit.

See also commit e06c3e99d ("common.h: use __func__ instead of
__FUNCTION__", 2023-06-17) / PR #5871.
This commit is contained in:
Kelvin M. Klann 2025-06-30 06:15:42 -03:00
parent 0c884029fc
commit eb6fc94037

View file

@ -36,6 +36,13 @@
//#define DEBUG_PRCTL
#ifdef DEBUG_PRCTL
#define debug_prctl(fmt, ...) \
printf("%s: %d, " fmt, __func__, __LINE__, __VA_ARGS__)
#else
#define debug_prctl(...) ((void)0)
#endif
static int pid_is_firejail(pid_t pid) {
#ifdef DEBUG_PRCTL
printf("%s: %d, pid %d\n", __FUNCTION__, __LINE__, pid);