diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2017-01-03 01:39:05 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2017-01-03 01:39:05 +0000 |
| commit | 48f7957436e75ff821f21463524daa6605ffaa8c (patch) | |
| tree | b808c9c05a6fb972783f14844c0cca20eba53092 /lib/libsysdecode/flags.c | |
| parent | 91371de1fa37a621fce051493eb59786d29802f7 (diff) | |
Notes
Diffstat (limited to 'lib/libsysdecode/flags.c')
| -rw-r--r-- | lib/libsysdecode/flags.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libsysdecode/flags.c b/lib/libsysdecode/flags.c index 653b522b3c08..bb8aa5892213 100644 --- a/lib/libsysdecode/flags.c +++ b/lib/libsysdecode/flags.c @@ -472,11 +472,15 @@ sysdecode_flock_operation(FILE *fp, int operation, int *rem) return (print_mask_int(fp, flockops, operation, rem)); } -bool -sysdecode_getfsstat_flags(FILE *fp, int flags, int *rem) +static struct name_table getfsstatmode[] = { + X(MNT_WAIT) X(MNT_NOWAIT) XEND +}; + +const char * +sysdecode_getfsstat_mode(int mode) { - return (print_mask_int(fp, getfsstatflags, flags, rem)); + return (lookup_value(getfsstatmode, mode)); } const char * |
