From 470c9768c152d9ea32867cd936f64534773a1588 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 19 Sep 2022 09:33:28 +0200 Subject: [PATCH] coredump: print build-id only when package version is missing The build-id is quite verbose, and probably not very useful to a user when they already know the nvra of the package. --- src/shared/elf-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/elf-util.c b/src/shared/elf-util.c index c235eac5a0e..6e4a94a048a 100644 --- a/src/shared/elf-util.c +++ b/src/shared/elf-util.c @@ -314,7 +314,7 @@ static void report_module_metadata(StackContext *c, const char *name, JsonVarian fprintf(c->f, " from %s", strnull(id)); } - if (build_id) + if (build_id && !(package && version)) fprintf(c->f, ", build-id=%s", build_id); fputs("\n", c->f); -- 2.47.3