[sysprof: 1/5] binfile: Fix debug message format strings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof: 1/5] binfile: Fix debug message format strings
- Date: Fri, 15 Oct 2021 17:32:32 +0000 (UTC)
commit 3429249715077b4e36ee9b53b10057434add9c71
Author: Ivan Molodetskikh <yalterz gmail com>
Date: Fri Oct 8 20:49:10 2021 +0300
binfile: Fix debug message format strings
src/libsysprof/binfile.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libsysprof/binfile.c b/src/libsysprof/binfile.c
index 2cb74187..b8cf7cc1 100644
--- a/src/libsysprof/binfile.c
+++ b/src/libsysprof/binfile.c
@@ -426,7 +426,7 @@ bin_file_lookup_symbol (bin_file_t *bin_file,
address -= bin_file->text_offset;
#if 0
- g_print ("lookup %d in %s\n", address, bin_file->filename);
+ g_print ("lookup %lx in %s\n", address, bin_file->filename);
#endif
for (list = bin_file->elf_files; list != NULL; list = list->next)
@@ -438,14 +438,14 @@ bin_file_lookup_symbol (bin_file_t *bin_file,
{
#if 0
g_print ("found %lx => %s\n", address,
- bin_symbol_get_name (bin_file, sym));
+ bin_symbol_get_name (bin_file, (const bin_symbol_t *)sym));
#endif
return (const bin_symbol_t *)sym;
}
}
#if 0
- g_print ("%lx undefined in %s (textoffset %x)\n",
+ g_print ("%lx undefined in %s (textoffset %lx)\n",
address + bin_file->text_offset,
bin_file->filename,
bin_file->text_offset);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]