1 /*
2 * pe.c - Print a second extended filesystem errors behavior
3 *
4 * Copyright (C) 1992, 1993, 1994 Remy Card <card@masi.ibp.fr>
5 * Laboratoire MASI, Institut Blaise Pascal
6 * Universite Pierre et Marie Curie (Paris VI)
7 *
8 * %Begin-Header%
9 * This file may be redistributed under the terms of the GNU Library
10 * General Public License, version 2.
11 * %End-Header%
12 */
13
14 /*
15 * History:
16 * 94/01/09 - Creation
17 */
18
19 #include <stdio.h>
20
21 #include "e2p.h"
22
print_fs_errors(FILE * f,unsigned short errors)23 void print_fs_errors (FILE * f, unsigned short errors)
24 {
25 switch (errors)
26 {
27 case EXT2_ERRORS_CONTINUE:
28 fprintf (f, "Continue");
29 break;
30 case EXT2_ERRORS_RO:
31 fprintf (f, "Remount read-only");
32 break;
33 case EXT2_ERRORS_PANIC:
34 fprintf (f, "Panic");
35 break;
36 default:
37 fprintf (f, "Unknown (continue)");
38 }
39 }
40