diff options
author | Alan Modra <amodra@gmail.com> | 2005-03-06 02:02:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-03-06 02:02:15 +0000 |
commit | 1f17067849a227bd84836150540dad74606bb16c (patch) | |
tree | 06173aca5b5909bfe1dcbae3cec47e86aa8f05b7 /bfd/elf.c | |
parent | a01ad9de048cae202c6e73fe6824b4ef7d16b046 (diff) | |
download | gdb-1f17067849a227bd84836150540dad74606bb16c.zip gdb-1f17067849a227bd84836150540dad74606bb16c.tar.gz gdb-1f17067849a227bd84836150540dad74606bb16c.tar.bz2 |
* elf.c (elfcore_grok_win32pstatus): Warning fixes.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -7080,7 +7080,7 @@ elfcore_grok_win32pstatus (bfd *abfd, Elf_Internal_Note *note) case NOTE_INFO_THREAD: /* Make a ".reg/999" section. */ - sprintf (buf, ".reg/%d", pstatus.data.thread_info.tid); + sprintf (buf, ".reg/%ld", (long) pstatus.data.thread_info.tid); len = strlen (buf) + 1; name = bfd_alloc (abfd, len); @@ -7107,7 +7107,8 @@ elfcore_grok_win32pstatus (bfd *abfd, Elf_Internal_Note *note) case NOTE_INFO_MODULE: /* Make a ".module/xxxxxxxx" section. */ - sprintf (buf, ".module/%08x", pstatus.data.module_info.base_address); + sprintf (buf, ".module/%08lx", + (long) pstatus.data.module_info.base_address); len = strlen (buf) + 1; name = bfd_alloc (abfd, len); |