Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/elf2ecoff Adjust size_t format specifiers for mips64...



details:   https://anonhg.NetBSD.org/src/rev/8e25a6cc510f
branches:  trunk
changeset: 750040:8e25a6cc510f
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Mon Dec 14 14:11:32 2009 +0000

description:
Adjust size_t format specifiers for mips64e[bl].

diffstat:

 usr.bin/elf2ecoff/elf2ecoff.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 357f7568defa -r 8e25a6cc510f usr.bin/elf2ecoff/elf2ecoff.c
--- a/usr.bin/elf2ecoff/elf2ecoff.c     Mon Dec 14 14:01:10 2009 +0000
+++ b/usr.bin/elf2ecoff/elf2ecoff.c     Mon Dec 14 14:11:32 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf2ecoff.c,v 1.24 2009/12/14 00:43:05 matt Exp $      */
+/*     $NetBSD: elf2ecoff.c,v 1.25 2009/12/14 14:11:32 uebayasi Exp $  */
 
 /*
  * Copyright (c) 1997 Jonathan Stone
@@ -255,7 +255,7 @@
                    ph[i].p_type == PT_MIPS_REGINFO) {
 
                        if (debug) {
-                               fprintf(stderr, "  skipping PH %d type %d flags 0x%x\n",
+                               fprintf(stderr, "  skipping PH %zd type %d flags 0x%x\n",
                                    i, ph[i].p_type, ph[i].p_flags);
                        }
                        continue;
@@ -263,7 +263,7 @@
                /* Section types we can't handle... */
                else
                        if (ph[i].p_type != PT_LOAD) {
-                               fprintf(stderr, "Program header %d type %d can't be converted.\n",
+                               fprintf(stderr, "Program header %zd type %d can't be converted.\n",
                                    i, ph[i].p_type);
                                exit(1);
                        }
@@ -278,7 +278,7 @@
 
                        if (debug) {
                                fprintf(stderr,
-                                   "  combinining PH %d type %d flags 0x%x with data, ndata = %ld, nbss =%ld\n", i, ph[i].p_type, ph[i].p_flags, ndata.len, nbss.len);
+                                   "  combinining PH %zd type %d flags 0x%x with data, ndata = %ld, nbss =%ld\n", i, ph[i].p_type, ph[i].p_flags, ndata.len, nbss.len);
                        }
                        combine(&data, &ndata, 0);
                        combine(&bss, &nbss, 1);
@@ -290,7 +290,7 @@
                        if (debug) {
 
                                fprintf(stderr,
-                                   "  combinining PH %d type %d flags 0x%x with text, len = %ld\n",
+                                   "  combinining PH %zd type %d flags 0x%x with text, len = %ld\n",
                                    i, ph[i].p_type, ph[i].p_flags, ntxt.len);
                        }
                        combine(&text, &ntxt, 0);



Home | Main Index | Thread Index | Old Index