diff options
Diffstat (limited to 'e2fsprogs/e2p/ps.c')
-rw-r--r-- | e2fsprogs/e2p/ps.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/e2fsprogs/e2p/ps.c b/e2fsprogs/e2p/ps.c index bec8b41..b7c0ee2 100644 --- a/e2fsprogs/e2p/ps.c +++ b/e2fsprogs/e2p/ps.c @@ -18,12 +18,9 @@ #include "e2p.h" -void print_fs_state (FILE * f, unsigned short state) +void print_fs_state(FILE *f, unsigned short state) { - if (state & EXT2_VALID_FS) - fprintf (f, " clean"); - else - fprintf (f, " not clean"); + fprintf(f, (state & EXT2_VALID_FS ? " clean" : " not clean")); if (state & EXT2_ERROR_FS) fprintf (f, " with errors"); } |