linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steven Liu <lingjiujianke@gmail.com>
To: Zheng Liu <gnehzuil.liu@gmail.com>
Cc: linux-ext4@vger.kernel.org, Zheng Liu <wenqing.lz@taobao.com>
Subject: Re: [PATCH] debugfs: cleanup in do_show_debugfs_params
Date: Mon, 16 Apr 2012 22:21:05 +0800	[thread overview]
Message-ID: <CADxeRw=byZRehhPYLikEtdBHRAxeu_cN_9iPy_MPVOF8hGdrTg@mail.gmail.com> (raw)
In-Reply-To: <1334583686-4571-1-git-send-email-wenqing.lz@taobao.com>

Hi Zheng Liu,

      What dose this mean, you use printf and not use stdout?


Reviewed-By Steven Liu <LiuQi@zecloud.cn>

2012/4/16 Zheng Liu <gnehzuil.liu@gmail.com>:
> From: Zheng Liu <wenqing.lz@taobao.com>
>
> Remove 'out' variable and replace fprintf with printf.
>
> Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
> ---
>  debugfs/debugfs.c |    6 ++----
>  1 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
> index 590468d..99281ac 100644
> --- a/debugfs/debugfs.c
> +++ b/debugfs/debugfs.c
> @@ -1973,12 +1973,10 @@ 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",
> +               printf("Open mode: read-%s\n",
>                        current_fs->flags & EXT2_FLAG_RW ? "write" : "only");
> -       fprintf(out, "Filesystem in use: %s\n",
> +       printf("Filesystem in use: %s\n",
>                current_fs ? current_fs->device_name : "--none--");
>  }
>
> --
> 1.7.4.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2012-04-16 14:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-16 13:41 [PATCH] debugfs: cleanup in do_show_debugfs_params Zheng Liu
2012-04-16 14:21 ` Steven Liu [this message]
2012-04-16 14:41   ` Zheng Liu
2012-04-24 18:33 ` Ted Ts'o

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADxeRw=byZRehhPYLikEtdBHRAxeu_cN_9iPy_MPVOF8hGdrTg@mail.gmail.com' \
    --to=lingjiujianke@gmail.com \
    --cc=gnehzuil.liu@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=wenqing.lz@taobao.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).