changeset 9181:b27c4cad21fb

(CHECK_SCNHDR, write_segment): Fix format/arg mismatch.
author Karl Heuer <kwzh@gnu.org>
date Thu, 29 Sep 1994 19:22:57 +0000
parents 569ed1f55710
children 516fdeee89d6
files src/unexaix.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/unexaix.c	Thu Sep 29 19:07:45 1994 +0000
+++ b/src/unexaix.c	Thu Sep 29 19:22:57 1994 +0000
@@ -416,8 +416,8 @@
 #define CHECK_SCNHDR(ptr, name, flags) \
   if (strcmp(s->s_name, name) == 0) { \
     if (s->s_flags != flags) { \
-      fprintf(stderr, "unexec: %x flags where %x expected in %s section.\n", \
-	      s->s_flags, flags, name); \
+      fprintf(stderr, "unexec: %lx flags where %x expected in %s section.\n", \
+	      (unsigned long)s->s_flags, flags, name); \
     } \
     if (ptr) { \
       fprintf(stderr, "unexec: duplicate section header for section %s.\n", \
@@ -616,8 +616,8 @@
       else if (nwrite != ret)
 	{
 	  sprintf (buf,
-		   "unexec write failure: addr 0x%x, fileno %d, size 0x%x, wrote 0x%x, errno %d",
-		   ptr, new, nwrite, ret, errno);
+		   "unexec write failure: addr 0x%lx, fileno %d, size 0x%x, wrote 0x%x, errno %d",
+		   (unsigned long)ptr, new, nwrite, ret, errno);
 	  PERROR (buf);
 	}
       i += nwrite;