mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
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:
parent
0c884029fc
commit
eb6fc94037
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue