recode functions to shrink size
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user