Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/kdump Fix cross-build problem on sparc caused by a c...
details: https://anonhg.NetBSD.org/src/rev/997f59aaf0fb
branches: trunk
changeset: 555671:997f59aaf0fb
user: manu <manu%NetBSD.org@localhost>
date: Mon Nov 24 22:12:14 2003 +0000
description:
Fix cross-build problem on sparc caused by a cast size_t -> int
diffstat:
usr.bin/kdump/kdump.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 19d81539a8c7 -r 997f59aaf0fb usr.bin/kdump/kdump.c
--- a/usr.bin/kdump/kdump.c Mon Nov 24 21:58:45 2003 +0000
+++ b/usr.bin/kdump/kdump.c Mon Nov 24 22:12:14 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kdump.c,v 1.69 2003/11/24 16:53:38 manu Exp $ */
+/* $NetBSD: kdump.c,v 1.70 2003/11/24 22:12:14 manu Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: kdump.c,v 1.69 2003/11/24 16:53:38 manu Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.70 2003/11/24 22:12:14 manu Exp $");
#endif
#endif /* not lint */
@@ -895,7 +895,8 @@
{
size_t size = mool->size;
- printf("%d/0x%x bytes at %p\n", size, size, mool->uaddr);
+ printf("%ld/0x%lx bytes at %p\n",
+ (u_long)size, (u_long)size, mool->uaddr);
mool++;
hexdump_buf(mool, size, word_size ? word_size : 4);
}
Home |
Main Index |
Thread Index |
Old Index