syscall: replace if (debug_flag) ... with debug_msg macro

* syscall.c (get_scno): Use debug_msg instead of
"if (debug_flag) error_msg".

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
This commit is contained in:
Harsha Sharma 2017-12-20 23:03:01 +05:30 committed by Dmitry V. Levin
parent 51e1f187f0
commit 391446a359

View File

@ -1211,9 +1211,8 @@ get_scno(struct tcb *tcp)
set_tcb_priv_data(tcp, s, free_sysent_buf);
if (debug_flag)
error_msg("pid %d invalid syscall %" PRI_kld,
tcp->pid, tcp->scno);
debug_msg("pid %d invalid syscall %" PRI_kld,
tcp->pid, tcp->scno);
}
return 1;
}