summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/nfsmount.c8
-rw-r--r--mdk-stage1/stage1.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/mdk-stage1/nfsmount.c b/mdk-stage1/nfsmount.c
index b6cdb22c9..d980860a2 100644
--- a/mdk-stage1/nfsmount.c
+++ b/mdk-stage1/nfsmount.c
@@ -219,10 +219,10 @@ int nfsmount_prepare(const char *spec, int *flags, char **mount_opts)
total_timeout);
if (clnt_stat != RPC_SUCCESS) {
if (errno != ECONNREFUSED) {
- clnt_perror(mclient, "mount");
+ log_message(clnt_sperror(mclient, "mount"));
goto fail; /* don't retry */
}
- clnt_perror(mclient, "mount");
+ log_message(clnt_sperror(mclient, "mount"));
auth_destroy(mclient->cl_auth);
clnt_destroy(mclient);
mclient = 0;
@@ -242,11 +242,11 @@ int nfsmount_prepare(const char *spec, int *flags, char **mount_opts)
fsock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (fsock < 0) {
- perror("nfs socket");
+ log_perror("nfs socket");
goto fail;
}
if (bindresvport(fsock, 0) < 0) {
- perror("nfs bindresvport");
+ log_perror("nfs bindresvport");
goto fail;
}
server_addr.sin_port = PMAPPORT;
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 4c7b5e174..8154b9286 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -101,7 +101,7 @@ static void spawn_shell(void)
close(fd);
setsid();
if (ioctl(0, TIOCSCTTY, NULL))
- perror("could not set new controlling tty");
+ log_perror("could not set new controlling tty");
execl(shell_name, shell_name, NULL);
log_message("execl of %s failed: %s", shell_name, strerror(errno));