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