From: Amit Gud Date: Sat, 24 Feb 2007 19:31:13 +0000 (-0500) Subject: Clean up of some error messages. X-Git-Tag: nfs-utils-1-1-0-rc1~48 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=cb2342b123ded9f074345e15e5ffc0dbfeb095e0;ds=sidebyside Clean up of some error messages. Signed-off-by: Steve Dickson Signed-off-by: Neil Brown --- diff --git a/utils/mount/mount.c b/utils/mount/mount.c index cdccfe8..45428b0 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -274,16 +274,16 @@ static void mount_error(char *node) { switch(errno) { case ENOTDIR: - printf("%s: mount point %s is not a directory\n", progname, node); + fprintf(stderr, "%s: mount point %s is not a directory\n", progname, node); break; case EBUSY: - printf("%s: %s is already mounted or busy\n", progname, node); + fprintf(stderr, "%s: %s is already mounted or busy\n", progname, node); break; case ENOENT: - printf("%s: mount point %s does not exist\n", progname, node); + fprintf(stderr, "%s: mount point %s does not exist\n", progname, node); break; default: - printf("%s: %s\n", progname, strerror(errno)); + fprintf(stderr, "%s: %s\n", progname, strerror(errno)); } } diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index 1d10cc6..1decf07 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -252,7 +252,7 @@ int _nfsumount(const char *spec, char *opts) goto out_bad; return nfs_call_umount(&mnt_server, &dirname); out_bad: - printf("%s: %s: not found or not mounted\n", progname, spec); + fprintf(stderr, "%s: %s: not found or not mounted\n", progname, spec); return 0; }