aboutsummaryrefslogtreecommitdiff
path: root/lib/e2p/ls.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2019-05-02 11:48:45 -0400
committerTheodore Ts'o <tytso@mit.edu>2019-05-02 12:16:16 -0400
commit5a7761e88f7ba944beb044c0656b0b959b6cca79 (patch)
tree22d92afdbb7e743473821b1d66bb4cf38ddcd97a /lib/e2p/ls.c
parent3f85a4c9a811c261b42764a2ef6dbfa10bc1dfdb (diff)
downloade2fsprogs-5a7761e88f7ba944beb044c0656b0b959b6cca79.tar.gz
libe2p: print the filename character encoding in list_super[2]
Also clean up some gcc -Wall warnings while we're at it. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'lib/e2p/ls.c')
-rw-r--r--lib/e2p/ls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/e2p/ls.c b/lib/e2p/ls.c
index a7586e09..11e7415b 100644
--- a/lib/e2p/ls.c
+++ b/lib/e2p/ls.c
@@ -470,6 +470,9 @@ void list_super2(struct ext2_super_block * sb, FILE *f)
if (ext2fs_has_feature_csum_seed(sb))
fprintf(f, "Checksum seed: 0x%08x\n",
sb->s_checksum_seed);
+ if (ext2fs_has_feature_fname_encoding(sb))
+ fprintf(f, "Character encoding: %s\n",
+ e2p_encoding2str(sb->s_encoding));
}
void list_super (struct ext2_super_block * s)