From 26d81f0737903dbd801af4cfafa39434140f661d Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 22 May 2023 18:55:59 -0700 Subject: [PATCH] libsysprof-analyze: print more elf loading information --- src/libsysprof-analyze/tests/test-elf-loader.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libsysprof-analyze/tests/test-elf-loader.c b/src/libsysprof-analyze/tests/test-elf-loader.c index e1c0c67d..0b0e0c95 100644 --- a/src/libsysprof-analyze/tests/test-elf-loader.c +++ b/src/libsysprof-analyze/tests/test-elf-loader.c @@ -73,9 +73,10 @@ main (int argc, g_autoptr(SysprofElf) elf = sysprof_elf_loader_load (elf_loader, info->mount_namespace, file, build_id, file_inode, &error); if (elf == NULL) - g_print ("%u: %s [unresolved]\n", info->pid, file); + g_print ("%u: %s (build-id %s) (inode %"G_GINT64_FORMAT") => [unresolved]\n", + info->pid, file, build_id ? build_id : "none", file_inode); else - g_print ("%u: %s [%s]\n", info->pid, file, sysprof_elf_get_file (elf)); + g_print ("%u: %s => %s\n", info->pid, file, sysprof_elf_get_file (elf)); g_clear_error (&error); }