simplified btrace_print() function