Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/elf2ecoff Use %zu for size_t, not %zd.



details:   https://anonhg.NetBSD.org/src/rev/a2fe3d8d9506
branches:  trunk
changeset: 750171:a2fe3d8d9506
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Dec 19 10:27:13 2009 +0000

description:
Use %zu for size_t, not %zd.

diffstat:

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

diffs (45 lines):

diff -r ce3d4a98f9b0 -r a2fe3d8d9506 usr.bin/elf2ecoff/elf2ecoff.c
--- a/usr.bin/elf2ecoff/elf2ecoff.c     Sat Dec 19 09:02:46 2009 +0000
+++ b/usr.bin/elf2ecoff/elf2ecoff.c     Sat Dec 19 10:27:13 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf2ecoff.c,v 1.25 2009/12/14 14:11:32 uebayasi Exp $  */
+/*     $NetBSD: elf2ecoff.c,v 1.26 2009/12/19 10:27:13 tsutsui Exp $   */
 
 /*
  * Copyright (c) 1997 Jonathan Stone
@@ -255,7 +255,7 @@
                    ph[i].p_type == PT_MIPS_REGINFO) {
 
                        if (debug) {
-                               fprintf(stderr, "  skipping PH %zd type %d flags 0x%x\n",
+                               fprintf(stderr, "  skipping PH %zu 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 %zd type %d can't be converted.\n",
+                               fprintf(stderr, "Program header %zu type %d can't be converted.\n",
                                    i, ph[i].p_type);
                                exit(1);
                        }
@@ -278,7 +278,7 @@
 
                        if (debug) {
                                fprintf(stderr,
-                                   "  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);
+                                   "  combinining PH %zu 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 %zd type %d flags 0x%x with text, len = %ld\n",
+                                   "  combinining PH %zu 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