Skip to content

Commit db7e826

Browse files
committed
parisc: Enhance debug code for PAT firmware
Enhance output when running PAT firmware, which is helpful when developing the QEMU emulator. The added code is behind an ifdef, so no performance overhead for normal kernels. Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 0b3b90a commit db7e826

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

arch/parisc/kernel/inventory.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,19 @@ pat_query_module(ulong pcell_loc, ulong mod_index)
207207
return status;
208208
}
209209

210+
#ifdef DEBUG_PAT
211+
pr_debug("PAT INDEX: %lu: cba 0x%lx, "
212+
"mod_info 0x%lx, mod_location 0x%lx, "
213+
"mod: 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx "
214+
"0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx\n",
215+
mod_index + 1, pa_pdc_cell->cba,
216+
pa_pdc_cell->mod_info, pa_pdc_cell->mod_location,
217+
pa_pdc_cell->mod[0], pa_pdc_cell->mod[1], pa_pdc_cell->mod[2],
218+
pa_pdc_cell->mod[3], pa_pdc_cell->mod[4], pa_pdc_cell->mod[5],
219+
pa_pdc_cell->mod[6], pa_pdc_cell->mod[7], pa_pdc_cell->mod[8],
220+
pa_pdc_cell->mod[9], pa_pdc_cell->mod[10], pa_pdc_cell->mod[11]);
221+
#endif
222+
210223
temp = pa_pdc_cell->cba;
211224
dev = alloc_pa_dev(PAT_GET_CBA(temp), &(pa_pdc_cell->mod_path));
212225
if (!dev) {

0 commit comments

Comments
 (0)