Blame SOURCES/0025-libmultipath-print-the-correct-file-when-parsing-fai.patch

ebef98
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
ebef98
From: Benjamin Marzinski <bmarzins@redhat.com>
ebef98
Date: Fri, 24 Sep 2021 13:13:31 -0500
ebef98
Subject: [PATCH] libmultipath: print the correct file when parsing fails
ebef98
ebef98
Don't assume that parsing failed on multipath.conf
ebef98
ebef98
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
ebef98
---
ebef98
 libmultipath/parser.c | 4 ++--
ebef98
 1 file changed, 2 insertions(+), 2 deletions(-)
ebef98
ebef98
diff --git a/libmultipath/parser.c b/libmultipath/parser.c
ebef98
index ebe1cbd9..d5595fb0 100644
ebef98
--- a/libmultipath/parser.c
ebef98
+++ b/libmultipath/parser.c
ebef98
@@ -561,8 +561,8 @@ process_stream(struct config *conf, FILE *stream, vector keywords,
ebef98
 				    t = keyword->handler(conf, strvec);
ebef98
 					r += t;
ebef98
 					if (t)
ebef98
-						condlog(1, "multipath.conf +%d, parsing failed: %s",
ebef98
-							line_nr, buf);
ebef98
+						condlog(1, "%s line %d, parsing failed: %s",
ebef98
+							file, line_nr, buf);
ebef98
 				}
ebef98
 
ebef98
 				if (keyword->sub) {