From 1d520184ee1a809f0a41566eed80ccf64b39ed1a Mon Sep 17 00:00:00 2001 From: Zheng Liu Date: Tue, 24 Apr 2012 14:32:30 -0400 Subject: [PATCH] debugfs: cleanup in do_show_debugfs_params Remove 'out' variable and replace fprintf with printf. Signed-off-by: Zheng Liu Signed-off-by: "Theodore Ts'o" --- debugfs/debugfs.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index 590468d6..cf80bd0c 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -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 -- 2.11.0