Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2012 13:58:14 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 215124 for review
Message-ID:  <201207301358.q6UDwEa5074573@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://p4web.freebsd.org/@@215124?ac=10

Change 215124 by rwatson@rwatson_svr_ctsrd_mipsbuild on 2012/07/30 13:57:56

	When printing out CHERI capabilities for debugging and testing
	purposes, render the perms field as 16-bit rather than 32-bit.

Affected files ...

.. //depot/projects/ctsrd/cheribsd/src/bin/cheritest/cheritest.c#2 edit
.. //depot/projects/ctsrd/cheribsd/src/sys/mips/cheri/cp2.c#13 edit

Differences ...

==== //depot/projects/ctsrd/cheribsd/src/bin/cheritest/cheritest.c#2 (text+ko) ====

@@ -43,7 +43,7 @@
 	struct capability c;						\
 									\
 	CP2_CR_GET((crn), c);						\
-	printf("C%u perms %08jx otype %016jx\n", crn,	\
+	printf("C%u perms %04jx otype %016jx\n", crn,	\
 	    (uintmax_t)c.c_uperms, (uintmax_t)c.u.c_otype);		\
 	printf("\tbase %016jx length %016jx\n", (uintmax_t)c.c_base,	\
 	    (uintmax_t)c.c_length);					\

==== //depot/projects/ctsrd/cheribsd/src/sys/mips/cheri/cp2.c#13 (text+ko) ====

@@ -491,7 +491,7 @@
 	struct chericap c;						\
 									\
 	CP2_CR_GET((crn), c);						\
-	db_printf("C%u perms %08jx otype %016jx\n", num,		\
+	db_printf("C%u perms %04jx otype %016jx\n", num,		\
 	    (uintmax_t)c.c_uperms, (uintmax_t)c.u.c_otype);		\
 	db_printf("\tbase %016jx length %016jx\n", (uintmax_t)c.c_base,	\
 	    (uintmax_t)c.c_length);					\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207301358.q6UDwEa5074573>