[LTP] [PATCH 1/9] metaparse: Print parsing file on verbose

Petr Vorel
2024-01-04T20:46:34Z

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
metadata/metaparse.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/metadata/metaparse.c b/metadata/metaparse.c
index 2384c73c8..fe6d68911 100644
--- a/metadata/metaparse.c
+++ b/metadata/metaparse.c
@@ -862,6 +862,9 @@ int main(int argc, char *argv[])
return 1;
}

+ if (verbose)
+ fprintf(stderr, "\n=== %s ===\n", argv[optind]);
+
res = parse_file(argv[optind]);
if (!res)
return 0;
--
2.43.0