summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-03-06 02:02:15 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-03-06 02:02:15 +0000
commit96f491a79dff033bcd47765aa9dfba240bfc48f4 (patch)
tree8a7cade4dcf56bbbe4e932c7ceee44832eb87805
parentc4b989456eb7572e8b5983ae3ace34c8242815e6 (diff)
downloadgdb-96f491a79dff033bcd47765aa9dfba240bfc48f4.tar.gz
* elf.c (elfcore_grok_win32pstatus): Warning fixes.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b3c231508f0..d29f1e86a8e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-06 Alan Modra <amodra@bigpond.net.au>
+
+ * elf.c (elfcore_grok_win32pstatus): Warning fixes.
+
2005-03-05 Alan Modra <amodra@bigpond.net.au>
* po/bfd.pot: Regenerate.
diff --git a/bfd/elf.c b/bfd/elf.c
index ef326f03da8..f8cc4011565 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -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);