PERFORCE change 215124 for review
Robert Watson
rwatson at FreeBSD.org
Mon Jul 30 13:58:15 UTC 2012
http://p4web.freebsd.org/@@215124?ac=10
Change 215124 by rwatson at 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); \
More information about the p4-projects
mailing list