diff options
Diffstat (limited to 'e2fsprogs/e2p/pe.c')
-rw-r--r-- | e2fsprogs/e2p/pe.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/e2fsprogs/e2p/pe.c b/e2fsprogs/e2p/pe.c index 4cce691..07fb886 100644 --- a/e2fsprogs/e2p/pe.c +++ b/e2fsprogs/e2p/pe.c @@ -18,20 +18,14 @@ #include "e2p.h" -void print_fs_errors (FILE * f, unsigned short errors) +void print_fs_errors(FILE *f, unsigned short errors) { - switch (errors) - { - case EXT2_ERRORS_CONTINUE: - fprintf (f, "Continue"); - break; - case EXT2_ERRORS_RO: - fprintf (f, "Remount read-only"); - break; - case EXT2_ERRORS_PANIC: - fprintf (f, "Panic"); - break; - default: - fprintf (f, "Unknown (continue)"); + char *disp = NULL; + switch (errors) { + case EXT2_ERRORS_CONTINUE: disp = "Continue"; break; + case EXT2_ERRORS_RO: disp = "Remount read-only"; break; + case EXT2_ERRORS_PANIC: disp = "Panic"; break; + default: disp = "Unknown (continue)"; } + fprintf(f, disp); } |