]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: print build-id only when package version is missing 24739/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Sep 2022 07:33:28 +0000 (09:33 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 28 Sep 2022 08:48:25 +0000 (10:48 +0200)
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

index c235eac5a0e585877dbe0221bea27d7018494f53..6e4a94a048a2dab5cc032a8b38f9662f0059cd89 100644 (file)
@@ -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);