Module Name:    src
Committed By:   martin
Date:           Mon Jan  4 08:24:42 UTC 2016

Modified Files:
        src/usr.bin/kdump: kdump.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/usr.bin/kdump/kdump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/kdump/kdump.c
diff -u src/usr.bin/kdump/kdump.c:1.121 src/usr.bin/kdump/kdump.c:1.122
--- src/usr.bin/kdump/kdump.c:1.121	Sun Jan  3 22:05:18 2016
+++ src/usr.bin/kdump/kdump.c	Mon Jan  4 08:24:42 2016
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 19
 #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 @@ ktrsyscall(struct ktr_syscall *ktr)
 			if ((cp = fcntlname(*ap)) != NULL)
 				(void)printf(",%s", cp);
 			else {
-				(void)printf(",%#lx", *ap);
+				(void)printf(",%#lx", (unsigned long)*ap);
 			}
 			ap++;
 			argcount--;

Reply via email to