]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mount.nfs: Fix some nfs_error() nits in network.c
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Jul 2009 20:51:27 +0000 (16:51 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 14 Jul 2009 20:51:27 +0000 (16:51 -0400)
Fix a couple of nfs_error() call sites in utils/mount/network.c.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/network.c

index ad6c14644e7f31fa64196cf2af86a25cd87caf45..6e0a72a3960f2bb8053a60a3892ccedb1b963cda 100644 (file)
@@ -783,8 +783,8 @@ int start_statd(void)
                                execl(START_STATD, START_STATD, NULL);
                                exit(1);
                        case -1: /* error */
-                               nfs_error(_("fork failed: %s"),
-                                                       strerror(errno));
+                               nfs_error(_("%s: fork failed: %s"),
+                                               progname, strerror(errno));
                                break;
                        default: /* parent */
                                waitpid(pid, NULL,0);
@@ -1159,7 +1159,8 @@ int nfs_callback_address(const struct sockaddr *sap, const socklen_t salen,
 out_failed:
        *buflen = 0;
        if (verbose)
-               nfs_error(_("%s: failed to construct callback address"));
+               nfs_error(_("%s: failed to construct callback address"),
+                               progname);
        return 0;
 }