Source-Changes-HG archive

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

[src/trunk]: src/sys/kern int format long arg problems



details:   https://anonhg.NetBSD.org/src/rev/9598535f54ef
branches:  trunk
changeset: 538814:9598535f54ef
user:      manu <manu%NetBSD.org@localhost>
date:      Wed Oct 30 23:08:00 2002 +0000

description:
int format long arg problems

diffstat:

 sys/kern/exec_macho.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 59f9964e5194 -r 9598535f54ef sys/kern/exec_macho.c
--- a/sys/kern/exec_macho.c     Wed Oct 30 22:52:10 2002 +0000
+++ b/sys/kern/exec_macho.c     Wed Oct 30 23:08:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_macho.c,v 1.12 2002/10/30 15:21:01 christos Exp $ */
+/*     $NetBSD: exec_macho.c,v 1.13 2002/10/30 23:08:00 manu Exp $     */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_macho.c,v 1.12 2002/10/30 15:21:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_macho.c,v 1.13 2002/10/30 23:08:00 manu Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -98,9 +98,9 @@
 exec_macho_print_fat_arch(struct exec_macho_fat_arch *arch) {
        printf("arch.cputype %x\n", be32toh(arch->cputype));
        printf("arch.cpusubtype %d\n", be32toh(arch->cpusubtype));
-       printf("arch.offset 0x%x\n", be32toh(arch->offset));
-       printf("arch.size %d\n", be32toh(arch->size));
-       printf("arch.align 0x%x\n", be32toh(arch->align));
+       printf("arch.offset 0x%lx\n", be32toh(arch->offset));
+       printf("arch.size %ld\n", be32toh(arch->size));
+       printf("arch.align 0x%lx\n", be32toh(arch->align));
 }
 
 static void



Home | Main Index | Thread Index | Old Index