summaryrefslogtreecommitdiff
path: root/src/shared/elf-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-09-19 09:33:28 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-09-28 10:48:25 +0200
commit470c9768c152d9ea32867cd936f64534773a1588 (patch)
treee2e2da2b0baa7b740110e4c0e9d57ce091e6b390 /src/shared/elf-util.c
parent1a0281a3ebf4f8c16d40aa9e63103f16cd23bb2a (diff)
downloadsystemd-470c9768c152d9ea32867cd936f64534773a1588.tar.gz
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.
Diffstat (limited to 'src/shared/elf-util.c')
-rw-r--r--src/shared/elf-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/elf-util.c b/src/shared/elf-util.c
index c235eac5a0..6e4a94a048 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);