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 compat netbsd32 syscall return values disp...
details: https://anonhg.NetBSD.org/src/rev/0b1a1056c624
branches: trunk
changeset: 329039:0b1a1056c624
user: njoly <njoly%NetBSD.org@localhost>
date: Wed Apr 30 11:51:51 2014 +0000
description:
Fix compat netbsd32 syscall return values display by calling
output_long() instead of printf().
diffstat:
usr.bin/kdump/kdump.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diffs (39 lines):
diff -r 766ffecd4556 -r 0b1a1056c624 usr.bin/kdump/kdump.c
--- a/usr.bin/kdump/kdump.c Wed Apr 30 02:04:11 2014 +0000
+++ b/usr.bin/kdump/kdump.c Wed Apr 30 11:51:51 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kdump.c,v 1.117 2013/11/27 20:27:58 christos Exp $ */
+/* $NetBSD: kdump.c,v 1.118 2014/04/30 11:51:51 njoly 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.117 2013/11/27 20:27:58 christos Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.118 2014/04/30 11:51:51 njoly Exp $");
#endif
#endif /* not lint */
@@ -652,14 +652,13 @@
{
if (!plain) {
- (void)printf("%ld", (long)ret);
- if (!small(ret))
- (void)printf("/%#lx", (long)ret);
+ output_long(ret, 0);
+ if (!small(ret)) {
+ putchar('/');
+ output_long(ret, 1);
+ }
} else {
- if (decimal || small(ret))
- (void)printf("%ld", (long)ret);
- else
- (void)printf("%#lx", (long)ret);
+ output_long(ret, !(decimal || small(ret)));
}
}
Home |
Main Index |
Thread Index |
Old Index