Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/kdump Cast register_t to unsigned long before printf...



details:   https://anonhg.NetBSD.org/src/rev/076ccac9ca2f
branches:  trunk
changeset: 342663:076ccac9ca2f
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jan 04 08:24:42 2016 +0000

description:
Cast register_t to unsigned long before printf'ing it with %lx.

diffstat:

 usr.bin/kdump/kdump.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7edf8b50416d -r 076ccac9ca2f usr.bin/kdump/kdump.c
--- a/usr.bin/kdump/kdump.c     Mon Jan 04 07:50:08 2016 +0000
+++ b/usr.bin/kdump/kdump.c     Mon Jan 04 08:24:42 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kdump.c,v 1.121 2016/01/03 22:05:18 christos Exp $     */
+/*     $NetBSD: kdump.c,v 1.122 2016/01/04 08:24:42 martin 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.121 2016/01/03 22:05:18 christos Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.122 2016/01/04 08:24:42 martin Exp $");
 #endif
 #endif /* not lint */
 
@@ -577,7 +577,7 @@
                        if ((cp = fcntlname(*ap)) != NULL)
                                (void)printf(",%s", cp);
                        else {
-                               (void)printf(",%#lx", *ap);
+                               (void)printf(",%#lx", (unsigned long)*ap);
                        }
                        ap++;
                        argcount--;



Home | Main Index | Thread Index | Old Index