diff options
author | Mike Frysinger | 2005-06-11 00:08:50 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-06-11 00:08:50 +0000 |
commit | 85cffcc83dfa8471c458789474513171ff9281df (patch) | |
tree | 6890b22c5a78b5166952d173a7d1a2bd94afca1b /e2fsprogs/e2p/pe.c | |
parent | 942e137679ef3e07036cc32689ea7c802304cd1d (diff) | |
download | busybox-85cffcc83dfa8471c458789474513171ff9281df.zip busybox-85cffcc83dfa8471c458789474513171ff9281df.tar.gz |
recode functions to shrink size
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); } |