Show f_flags field in printstatfs

printstatfs64 was right, but printstatfs was missing f_flags.
Noticed on aarch64.

* statfs.c (printstatfs) [_STATFS_F_FLAGS]: Print statfs.f_flags.

Signed-off-by: Elliott Hughes <enh@google.com>
This commit is contained in:
Elliott Hughes 2015-03-17 16:00:31 -07:00 committed by Dmitry V. Levin
parent 68804b3267
commit 1b5b5670eb

View File

@ -45,6 +45,9 @@ printstatfs(struct tcb *tcp, const long addr)
tprintf(", f_namelen=%lu", (unsigned long)statbuf.f_namelen);
#ifdef _STATFS_F_FRSIZE
tprintf(", f_frsize=%lu", (unsigned long)statbuf.f_frsize);
#endif
#ifdef _STATFS_F_FLAGS
tprintf(", f_flags=%lu", (unsigned long)statbuf.f_flags);
#endif
tprints("}");
}