Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Cast arguments to vaddr_t when using PRIxVADDR in t...
details: https://anonhg.NetBSD.org/src/rev/ab1dffc65e6e
branches: trunk
changeset: 761307:ab1dffc65e6e
user: mbalmer <mbalmer%NetBSD.org@localhost>
date: Sun Jan 23 11:01:08 2011 +0000
description:
Cast arguments to vaddr_t when using PRIxVADDR in the printf format string.
diffstat:
sys/kern/tty.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r c1c7073fdf11 -r ab1dffc65e6e sys/kern/tty.c
--- a/sys/kern/tty.c Sun Jan 23 09:44:58 2011 +0000
+++ b/sys/kern/tty.c Sun Jan 23 11:01:08 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty.c,v 1.240 2011/01/23 07:30:07 matt Exp $ */
+/* $NetBSD: tty.c,v 1.241 2011/01/23 11:01:08 mbalmer Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.240 2011/01/23 07:30:07 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.241 2011/01/23 11:01:08 mbalmer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2433,10 +2433,11 @@
#ifdef LWP_PC
if (l->l_stat == LSONPROC) {
snprintf(lmsg, sizeof(lmsg), "%#"PRIxVADDR"/%d",
- LWP_PC(l), cpu_index(l->l_cpu));
+ (vaddr_t)LWP_PC(l), cpu_index(l->l_cpu));
strlcat(buf, lmsg, bufsz);
} else if (l->l_stat == LSRUN) {
- snprintf(lmsg, sizeof(lmsg), "%#"PRIxVADDR, LWP_PC(l));
+ snprintf(lmsg, sizeof(lmsg), "%#"PRIxVADDR,
+ (vaddr_t)LWP_PC(l));
strlcat(buf, lmsg, bufsz);
} else {
strlcat(buf, l->l_wchan ? l->l_wmesg : "iowait", bufsz);
Home |
Main Index |
Thread Index |
Old Index