From: Zbigniew Jędrzejewski-Szmek Date: Mon, 19 Sep 2022 07:33:28 +0000 (+0200) Subject: coredump: print build-id only when package version is missing X-Git-Tag: v252-rc1~54^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F24739%2Fhead;p=thirdparty%2Fsystemd.git 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. --- 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);