diff options
| author | christos <christos@NetBSD.org> | 2002-10-31 02:40:41 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2002-10-31 02:40:41 +0000 |
| commit | e6535bf628806af69cbc7882f4435e6e4e4e0cf6 (patch) | |
| tree | 00d63948f1f68eb7e7a25593ab28f3a6b50431fd /sys/kern/exec_macho.c | |
| parent | 277101f13cbe94ff9733273f4d08b2b61511a387 (diff) | |
XXX: be32toh on powerpc does not cast to int32_t so passing u_long to
be32toh produces an unsigned long result, causing a printf argument
mismatch. This is the wrong fix, but I am not going to change the
powerpc macros; fix the powerpc macros and revert my change.
Diffstat (limited to 'sys/kern/exec_macho.c')
| -rw-r--r-- | sys/kern/exec_macho.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/exec_macho.c b/sys/kern/exec_macho.c index 91844fa46e0..5e896da1a34 100644 --- a/sys/kern/exec_macho.c +++ b/sys/kern/exec_macho.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_macho.c,v 1.13 2002/10/30 23:08:00 manu Exp $ */ +/* $NetBSD: exec_macho.c,v 1.14 2002/10/31 02:40:41 christos 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.13 2002/10/30 23:08:00 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: exec_macho.c,v 1.14 2002/10/31 02:40:41 christos Exp $"); #include <sys/param.h> #include <sys/proc.h> @@ -98,9 +98,9 @@ static void 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%lx\n", be32toh(arch->offset)); - printf("arch.size %ld\n", be32toh(arch->size)); - printf("arch.align 0x%lx\n", be32toh(arch->align)); + printf("arch.offset 0x%x\n", (int32_t)be32toh(arch->offset)); + printf("arch.size %d\n", (int32_t)be32toh(arch->size)); + printf("arch.align 0x%x\n", (int32_t)be32toh(arch->align)); } static void |
