From 1b4393c5db0eaf5e2862698d9e21c2cf2ac739d2 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 12 Feb 2002 20:50:47 +0000 Subject: [PATCH] Cast/format fix to make this build on 32bit kernels. --- sys/arch/sparc64/dev/psycho.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c index 092802479174..9b3c16f291dc 100644 --- a/sys/arch/sparc64/dev/psycho.c +++ b/sys/arch/sparc64/dev/psycho.c @@ -1,4 +1,4 @@ -/* $NetBSD: psycho.c,v 1.41 2002/02/08 20:04:14 eeh Exp $ */ +/* $NetBSD: psycho.c,v 1.42 2002/02/12 20:50:47 martin Exp $ */ /* * Copyright (c) 1999, 2000 Matthew R. Green @@ -639,8 +639,8 @@ psycho_ue(arg) /* Sometimes the AFAR points to an IOTSB entry */ if (afar >= is->is_ptsb && afar < is->is_ptsb + size) { - printf("IOVA %lx IOTTE %llx\n", - (afar - is->is_ptsb) * NBPG + is->is_dvmabase, + printf("IOVA %llx IOTTE %llx\n", + (long long)((afar - is->is_ptsb) * NBPG + is->is_dvmabase), (long long)ldxa(afar, ASI_PHYS_CACHED)); } Debugger();