diff options
author | John Baldwin <jhb@FreeBSD.org> | 2012-02-23 21:08:21 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2012-02-23 21:08:21 +0000 |
commit | 145e6aa9f8dd157776a3013e775b42729f4089dc (patch) | |
tree | 6e1b12620e2cc9529fa8854a17a1c655f183092e /usr.bin/kdump/kdump.c | |
parent | 84110e7e0b36f52ca11a51cf79cde0932905a9d7 (diff) |
Pretty-print the advice constants passed to posix_fadvise(2).
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=232072
Diffstat (limited to 'usr.bin/kdump/kdump.c')
-rw-r--r-- | usr.bin/kdump/kdump.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index ba09170d8f69..9ee5827383a6 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1014,6 +1014,15 @@ ktrsyscall(struct ktr_syscall *ktr, u_int flags) } capname(arg); break; + case SYS_posix_fadvise: + print_number(ip,narg,c); + print_number(ip,narg,c); + print_number(ip,narg,c); + (void)putchar(','); + fadvisebehavname((int)*ip); + ip++; + narg--; + break; } } while (narg > 0) { |