device-mapper-multipath/0025-libmultipath-print-the-correct-file-when-parsing-fai.patch
Benjamin Marzinski b335d16aab device-mapper-multipath-0.8.7-3
Add 0024-libmultipath-use-typedef-for-keyword-handler-functio.patch
Add 0025-libmultipath-print-the-correct-file-when-parsing-fai.patch
Add 0026-libmultipath-pass-file-and-line-number-to-keyword-ha.patch
Add 0027-libmultipath-make-set_int-take-a-range-for-valid-val.patch
Add 0028-libmultipath-improve-checks-for-set_str.patch
Add 0029-libmultipath-deprecate-file-and-directory-config-opt.patch
Add 0030-libmultipath-split-set_int-to-enable-reuse.patch
Add 0031-libmultipath-cleanup-invalid-config-handling.patch
Add 0032-libmultipath-don-t-return-error-on-invalid-values.patch
  * The above 9 patches fix bz #2017969
Add 0033-multipathd-avoid-unnecessary-path-read-only-reloads.patch
  * Fixes bz #2017979
Add 0034-multipath-fix-exit-status-of-multipath-T.patch
Resolves: bz #2017969, #2017979
2021-11-19 12:35:32 -06:00

28 lines
928 B
Diff

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