add cprintf in trap.c