summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1999-08-06 00:11:02 +0000
committerthorpej <thorpej@NetBSD.org>1999-08-06 00:11:02 +0000
commit2d720e5ff01a489e82aaef2d5b941da4da1508d6 (patch)
tree6a524966f067abfaebf8db756c766cec52a63b31 /usr.bin/kdump
parent3ad1ac1cf6afb35086fcdec7369a7d01bf382b68 (diff)
Don't truncate syscall return values on LP64 platforms.
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/kdump.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index b2c9e85151b..84664aa4fc1 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kdump.c,v 1.23 1998/10/24 19:04:51 christos Exp $ */
+/* $NetBSD: kdump.c,v 1.24 1999/08/06 00:11:03 thorpej Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: kdump.c,v 1.23 1998/10/24 19:04:51 christos Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.24 1999/08/06 00:11:03 thorpej Exp $");
#endif
#endif /* not lint */
@@ -399,7 +399,7 @@ void
ktrsysret(ktr)
struct ktr_sysret *ktr;
{
- int ret = ktr->ktr_retval;
+ register_t ret = ktr->ktr_retval;
int error = ktr->ktr_error;
int code = ktr->ktr_code;
@@ -411,14 +411,14 @@ ktrsysret(ktr)
switch (error) {
case 0:
if (fancy) {
- (void)printf("%d", ret);
+ (void)printf("%ld", (long)ret);
if (ret < 0 || ret > 9)
- (void)printf("/%#x", ret);
+ (void)printf("/%#lx", (long)ret);
} else {
if (decimal)
- (void)printf("%d", ret);
+ (void)printf("%ld", (long)ret);
else
- (void)printf("%#x", ret);
+ (void)printf("%#lx", (long)ret);
}
break;