diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-09-01 11:33:06 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-09-01 11:33:06 -0400 |
commit | 32a94f0054478cd2647f98c57dfe43caf8131e15 (patch) | |
tree | e683dcf3918d1f4173f0ceae9a852fdabeccc489 /utils/exportfs/exportfs.c | |
parent | 5af7eb76b210cc15fc4b8d7d03a669353997b827 (diff) | |
download | nfs-utils-32a94f0054478cd2647f98c57dfe43caf8131e15.tar.gz nfs-utils-32a94f0054478cd2647f98c57dfe43caf8131e15.tar.xz nfs-utils-32a94f0054478cd2647f98c57dfe43caf8131e15.zip |
exportfs: drop extra newline in xlog
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>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/exportfs/exportfs.c')
-rw-r--r-- | 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)); } |