Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/stand/bootblock/elf2bb Print ptrdiff_t with %...



details:   https://anonhg.NetBSD.org/src/rev/270cbfe47aaf
branches:  trunk
changeset: 983364:270cbfe47aaf
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue May 18 20:32:18 2021 +0000

description:
Print ptrdiff_t with %td, not %d. Appeared in passing in PR 56188.

diffstat:

 sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6ba75c78cac5 -r 270cbfe47aaf sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
--- a/sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c    Tue May 18 17:05:45 2021 +0000
+++ b/sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c    Tue May 18 20:32:18 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf2bb.c,v 1.18 2021/02/25 03:40:27 rin Exp $  */
+/*     $NetBSD: elf2bb.c,v 1.19 2021/05/18 20:32:18 dholland Exp $     */
 
 /*-
  * Copyright (c) 1996,2006 The NetBSD Foundation, Inc.
@@ -421,7 +421,7 @@
        *rpo = 0; rpo += delta;
        *rpo = 0; rpo += delta;
 
-       printf("using %d bytes, %d bytes remaining.\n", delta > 0 ?
+       printf("using %td bytes, %td bytes remaining.\n", delta > 0 ?
            rpo-buffer-tsz-dsz : buffer+bbsize-rpo, delta > 0 ?
            buffer + bbsize - rpo : rpo - buffer - tsz - dsz);
        /*



Home | Main Index | Thread Index | Old Index