From 89122493a39f76a530ee0db862986d63b9186e83 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 28 Sep 2017 17:17:43 +0200 Subject: erec_print: Pass output FILE pointer to netlink_dump_expr() It was a bit odd that erec_print() outputs to a given FILE pointer but then calls netlink_dump_expr() which just prints to stdout. Fix this by passing the given FILE pointer along so output is guaranteed to go to the same destination. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- src/erec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/erec.c') diff --git a/src/erec.c b/src/erec.c index f62bc78c..174d1aeb 100644 --- a/src/erec.c +++ b/src/erec.c @@ -153,7 +153,7 @@ void erec_print(FILE *f, const struct error_record *erec, fprintf(f, "%s\n", erec->msg); for (l = 0; l < (int)erec->num_locations; l++) { loc = &erec->locations[l]; - netlink_dump_expr(loc->nle, debug_mask); + netlink_dump_expr(loc->nle, f, debug_mask); } fprintf(f, "\n"); } else { -- cgit v1.2.3