diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-10-01 23:17:58 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-10-01 23:17:58 +0000 |
commit | 339e31b89a3e0fb4ed2b8414eb5641d1ac7f986e (patch) | |
tree | c6c007238b719d1fcd8e300b4391b523b5eee9cd | |
parent | 22fa9a7ef0823174f8bfc79bf5fe46982e170a5b (diff) | |
download | s6-339e31b89a3e0fb4ed2b8414eb5641d1ac7f986e.tar.xz |
Add debug instruction in keycheck_ip6
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r-- | src/libs6/s6_accessrules_keycheck_ip6.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs6/s6_accessrules_keycheck_ip6.c b/src/libs6/s6_accessrules_keycheck_ip6.c index 796043e..f5bcc5a 100644 --- a/src/libs6/s6_accessrules_keycheck_ip6.c +++ b/src/libs6/s6_accessrules_keycheck_ip6.c @@ -4,6 +4,8 @@ #include <skalibs/types.h> #include <skalibs/bitarray.h> #include <skalibs/fmtscan.h> +#include <skalibs/lolstdio.h> + #include <s6/accessrules.h> s6_accessrules_result_t s6_accessrules_keycheck_ip6 (void const *key, void const *data, s6_accessrules_params_t *params, s6_accessrules_backend_func_ref check1) @@ -20,6 +22,7 @@ s6_accessrules_result_t s6_accessrules_keycheck_ip6 (void const *key, void const len = 4 + ip6_fmt(fmt+4, ip6) ; fmt[len++] = '_' ; len += uint_fmt(fmt + len, 128 - i) ; + LOLDEBUG("s6_accessrules_keycheck_ip6: checking %.*s", (int)len, fmt) ; r = (*check1)(fmt, len, data, params) ; if (r != S6_ACCESSRULES_NOTFOUND) return r ; } |