diff options
author | jhb <jhb@FreeBSD.org> | 2001-06-15 20:27:44 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-06-15 20:27:44 +0000 |
commit | fc8bd4c1c0e394cc91cafe4d7f5168b7ad06ea59 (patch) | |
tree | 7b8b0f1fe6c14731e76dc38811615af64e1b58b9 /usr.sbin/lpr/common_source/common.c | |
parent | 89fb81a8c41236577dfc1355f0da5d1cf670b37a (diff) | |
download | FreeBSD-src-fc8bd4c1c0e394cc91cafe4d7f5168b7ad06ea59.zip FreeBSD-src-fc8bd4c1c0e394cc91cafe4d7f5168b7ad06ea59.tar.gz |
Updates and tweaks to the new trace functionality:
- Use db_printf() instead of printf().
- Clean up decode_syscall() to use regular if-then-else rather than goto's.
- Use the same method of parsing PID's for per-process traces as the x86
code does: that is, if the address passed in is not a valid kernel
address, treat it is a decimal pid.
- If the pid of the current process is specified, fall back to using the
"default" parameters for the trace as curproc's pcb is not valid at this
point.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/lpr/common_source/common.c')
0 files changed, 0 insertions, 0 deletions