mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-24 02:25:03 +08:00
debugfs: cleanup in do_show_debugfs_params
Remove 'out' variable and replace fprintf with printf. Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
a99145e6ef
commit
1d520184ee
@ -1973,13 +1973,11 @@ void do_rmdir(int argc, char *argv[])
|
||||
void do_show_debugfs_params(int argc EXT2FS_ATTR((unused)),
|
||||
char *argv[] EXT2FS_ATTR((unused)))
|
||||
{
|
||||
FILE *out = stdout;
|
||||
|
||||
if (current_fs)
|
||||
fprintf(out, "Open mode: read-%s\n",
|
||||
current_fs->flags & EXT2_FLAG_RW ? "write" : "only");
|
||||
fprintf(out, "Filesystem in use: %s\n",
|
||||
current_fs ? current_fs->device_name : "--none--");
|
||||
printf("Open mode: read-%s\n",
|
||||
current_fs->flags & EXT2_FLAG_RW ? "write" : "only");
|
||||
printf("Filesystem in use: %s\n",
|
||||
current_fs ? current_fs->device_name : "--none--");
|
||||
}
|
||||
|
||||
#ifndef READ_ONLY
|
||||
|
Loading…
Reference in New Issue
Block a user