From: Steve Dickson <SteveD@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 1/2] exportfs: drop extra newline in xlog
Date: Thu, 01 Sep 2011 11:35:38 -0400 [thread overview]
Message-ID: <4E5FA64A.3070300@RedHat.com> (raw)
In-Reply-To: <1314890192-11075-1-git-send-email-vapier@gentoo.org>
On 09/01/2011 11:16 AM, Mike Frysinger wrote:
> Since xlog() itself appends a newline, we don't want to add our own
> otherwise we get extra in the output.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Committed...
steved.
> ---
> utils/exportfs/exportfs.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
> index 12e8bf1..986a272 100644
> --- a/utils/exportfs/exportfs.c
> +++ b/utils/exportfs/exportfs.c
> @@ -401,7 +401,7 @@ validate_export(nfs_export *exp)
> int fs_has_fsid = 0;
>
> if (stat(path, &stb) < 0) {
> - xlog(L_ERROR, "Failed to stat %s: %m \n", path);
> + xlog(L_ERROR, "Failed to stat %s: %m", path);
> return;
> }
> if (!S_ISDIR(stb.st_mode) && !S_ISREG(stb.st_mode)) {
> @@ -530,7 +530,7 @@ export_d_read(const char *dname)
>
> n = scandir(dname, &namelist, NULL, versionsort);
> if (n < 0)
> - xlog(L_NOTICE, "scandir %s: %s\n", dname, strerror(errno));
> + xlog(L_NOTICE, "scandir %s: %s", dname, strerror(errno));
> else if (n == 0)
> return;
>
> @@ -558,7 +558,7 @@ export_d_read(const char *dname)
>
> fname_len = snprintf(fname, PATH_MAX +1, "%s/%s", dname, d->d_name);
> if (fname_len > PATH_MAX) {
> - xlog(L_WARNING, "Too long file name: %s in %s\n", d->d_name, dname);
> + xlog(L_WARNING, "Too long file name: %s in %s", d->d_name, dname);
> continue;
> }
>
> @@ -672,7 +672,7 @@ dump(int verbose)
> static void
> error(nfs_export *exp, int err)
> {
> - xlog(L_ERROR, "%s:%s: %s\n", exp->m_client->m_hostname,
> + xlog(L_ERROR, "%s:%s: %s", exp->m_client->m_hostname,
> exp->m_export.e_path, strerror(err));
> }
>
prev parent reply other threads:[~2011-09-01 15:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-01 15:16 [PATCH 1/2] exportfs: drop extra newline in xlog Mike Frysinger
2011-09-01 15:16 ` [PATCH 2/2] exportfs: do not warn if /etc/exports.d/ does not exist Mike Frysinger
2011-09-01 15:35 ` Steve Dickson
2011-09-02 0:40 ` Masatake YAMATO
2011-09-02 20:52 ` Steve Dickson
2011-09-01 15:35 ` Steve Dickson [this message]
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=4E5FA64A.3070300@RedHat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=vapier@gentoo.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.