From 6460c115e2603ac4e22d84a27a28945e29f9c0ca Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 31 Aug 2018 18:59:59 +0200 Subject: nfnl_osf: display debugging information from --debug=mnl Otherwise this breaks tests/py/. Signed-off-by: Pablo Neira Ayuso --- src/nfnl_osf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/nfnl_osf.c') 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); -- cgit v1.2.3