static int print_header(const struct chunk *cnk) { int pos = 0; pos += print_string(cnk->ch_text->tx_fname); pos += print_string(": line "); pos += print_size_t(cnk->ch_first.ps_nl_cnt); pos += print_string("-"); pos += print_size_t(cnk->ch_last.ps_nl_cnt - 1); return pos; }
void print_mprotect(pid_t pid, struct user_regs_struct *regs, size_t return_value) { int nb; nb = 0; nb += printf("mprotect("); nb += print_void_ptr(pid, get_param(regs, 0)); nb += printf(", "); nb += print_size_t(pid, get_param(regs, 1)); nb += printf(", "); nb += print_prot(get_param(regs, 2)); nb += printf(")"); print_space(nb); printf("= "); print_int(pid, return_value); printf("\n"); }