]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - lib/e2p/pe.c
Merge branch 'maint' into next
[thirdparty/e2fsprogs.git] / lib / e2p / pe.c
CommitLineData
3839e657
TT
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 *
543547a5
TT
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%
3839e657
TT
12 */
13
14/*
15 * History:
16 * 94/01/09 - Creation
17 */
18
d1154eb4 19#include "config.h"
3839e657
TT
20#include <stdio.h>
21
3839e657
TT
22#include "e2p.h"
23
24void print_fs_errors (FILE * f, unsigned short errors)
25{
26 switch (errors)
27 {
28 case EXT2_ERRORS_CONTINUE:
29 fprintf (f, "Continue");
30 break;
31 case EXT2_ERRORS_RO:
32 fprintf (f, "Remount read-only");
33 break;
34 case EXT2_ERRORS_PANIC:
35 fprintf (f, "Panic");
36 break;
37 default:
38 fprintf (f, "Unknown (continue)");
39 }
40}