diff options
author | imp <imp@FreeBSD.org> | 2010-01-25 19:25:21 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-01-25 19:25:21 +0000 |
commit | 894160498af21bad4f32d1d7a21b931e099abb1e (patch) | |
tree | 17e157307f053ca109eb6fc8dfff455a59c7c196 /sys/mips | |
parent | 7adf9507d92ef391bf44025d3d99be6a2cb07265 (diff) | |
download | FreeBSD-src-894160498af21bad4f32d1d7a21b931e099abb1e.zip FreeBSD-src-894160498af21bad4f32d1d7a21b931e099abb1e.tar.gz |
Turn on debugging on the fpa unit. Fix some printfs that were only
enabled for debugging. This should be turned off before we release,
but we need it for the moment.
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/cavium/dev/rgmii/octeon_fpa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/mips/cavium/dev/rgmii/octeon_fpa.c b/sys/mips/cavium/dev/rgmii/octeon_fpa.c index 427a297..933f6de 100644 --- a/sys/mips/cavium/dev/rgmii/octeon_fpa.c +++ b/sys/mips/cavium/dev/rgmii/octeon_fpa.c @@ -18,7 +18,7 @@ __FBSDID("$FreeBSD$"); #include "octeon_fpa.h" -//#define FPA_DEBUG 1 +#define FPA_DEBUG 1 /* * octeon_dump_fpa @@ -112,7 +112,7 @@ void octeon_enable_fpa (void) } -//#define FPA_DEBUG_TERSE 1 +#define FPA_DEBUG_TERSE 1 /* * octeon_fpa_fill_pool_mem @@ -165,13 +165,13 @@ void octeon_fpa_fill_pool_mem (u_int pool, u_int elem_size_words, u_int elem_num * already preallocated extra */ #ifdef FPA_DEBUG - printf(" %% Huge MemBlock 0x%X Bytes %u\n", memory, bytes); + printf(" %% Huge MemBlock %p Bytes %u\n", memory, bytes); #endif memory = (void *) OCTEON_ALIGN(memory); #ifdef FPA_DEBUG_TERSE - printf("FPA fill: %u Count: %u SizeBytes: %u SizeBytesAligned: %u 1st: 0x%X = %p\n", + printf("FPA fill: %u Count: %u SizeBytes: %u SizeBytesAligned: %u 1st: %p = 0x%X\n", pool, elem_num, elem_size_bytes, block_size, memory, (void *)OCTEON_PTR2PHYS(memory)); #endif @@ -180,7 +180,7 @@ void octeon_fpa_fill_pool_mem (u_int pool, u_int elem_size_words, u_int elem_num while (elem_num--) { #ifdef FPA_DEBUG if (((elems - elem_num) < 4) || (elem_num < 4)) - printf(" %% Block %d: 0x%X Phys 0x%X Bytes %u\n", block, memory, OCTEON_PTR2PHYS(memory), elem_size_bytes); + printf(" %% Block %d: %p Phys 0x%X Bytes %u\n", block, memory, OCTEON_PTR2PHYS(memory), elem_size_bytes); block++; #endif octeon_fpa_free(memory, pool, 0); |