svn commit: r286821 - head/sys/powerpc/powerpc

Justin Hibbits jhibbits at FreeBSD.org
Sun Aug 16 01:09:00 UTC 2015


Author: jhibbits
Date: Sun Aug 16 01:08:59 2015
New Revision: 286821
URL: https://svnweb.freebsd.org/changeset/base/286821

Log:
  SRR1 and DSISR aren't pointers, print them as integers.

Modified:
  head/sys/powerpc/powerpc/trap.c

Modified: head/sys/powerpc/powerpc/trap.c
==============================================================================
--- head/sys/powerpc/powerpc/trap.c	Sun Aug 16 00:39:44 2015	(r286820)
+++ head/sys/powerpc/powerpc/trap.c	Sun Aug 16 01:08:59 2015	(r286821)
@@ -413,8 +413,8 @@ printtrap(u_int vector, struct trapframe
 	case EXC_DTMISS:
 		printf("   virtual address = 0x%" PRIxPTR "\n", frame->dar);
 #ifdef AIM
-		printf("   dsisr           = 0x%" PRIxPTR "\n",
-		    frame->cpu.aim.dsisr);
+		printf("   dsisr           = 0x%lx\n",
+		    (u_long)frame->cpu.aim.dsisr);
 #endif
 		break;
 	case EXC_ISE:
@@ -438,7 +438,7 @@ printtrap(u_int vector, struct trapframe
 	    frame->cpu.booke.esr);
 #endif
 	printf("   srr0            = 0x%" PRIxPTR "\n", frame->srr0);
-	printf("   srr1            = 0x%" PRIxPTR "\n", frame->srr1);
+	printf("   srr1            = 0x%lx\n", (u_long)frame->srr1);
 	printf("   lr              = 0x%" PRIxPTR "\n", frame->lr);
 	printf("   curthread       = %p\n", curthread);
 	if (curthread != NULL)


More information about the svn-src-all mailing list