diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-31 18:59:59 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-31 19:14:49 +0200 |
commit | 6460c115e2603ac4e22d84a27a28945e29f9c0ca (patch) | |
tree | 7004c857d0237e1f41a05a341a852c152569aa09 | |
parent | 41b94a1ed26cfc6a575687716cdc7847fd6349f0 (diff) |
nfnl_osf: display debugging information from --debug=mnl
Otherwise this breaks tests/py/.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/nfnl_osf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nfnl_osf.c b/src/nfnl_osf.c index fb76fb0e..e9a7f1d1 100644 --- a/src/nfnl_osf.c +++ b/src/nfnl_osf.c @@ -221,7 +221,7 @@ static int osf_load_line(char *buffer, int len, int del, memset(&f, 0, sizeof(struct nf_osf_user_finger)); - if (ctx->debug_mask & NFT_DEBUG_NETLINK) + if (ctx->debug_mask & NFT_DEBUG_MNL) nft_print(ctx->octx, "Loading '%s'.\n", buffer); for (i = 0; i < len && buffer[i] != '\0'; ++i) { @@ -230,7 +230,7 @@ static int osf_load_line(char *buffer, int len, int del, } if (cnt != 8) { - if (ctx->debug_mask & NFT_DEBUG_NETLINK) + if (ctx->debug_mask & NFT_DEBUG_MNL) nft_print(ctx->octx, "Wrong input line '%s': cnt: %d, must be 8, i: %d, must be %d.\n", buffer, cnt, i, len); return -EINVAL; } @@ -357,13 +357,13 @@ int nfnl_osf_load_fingerprints(struct netlink_ctx *ctx, int del) int err = 0; char buf[1024]; - if (ctx->debug_mask & NFT_DEBUG_NETLINK) + if (ctx->debug_mask & NFT_DEBUG_MNL) nft_print(ctx->octx, "Opening OS signature file '%s'\n", OS_SIGNATURES); inf = fopen(OS_SIGNATURES, "r"); if (!inf) { - if (ctx->debug_mask & NFT_DEBUG_NETLINK) + if (ctx->debug_mask & NFT_DEBUG_MNL) nft_print(ctx->octx, "Failed to open file '%s'\n", OS_SIGNATURES); |