aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/nfsiod/nfsiod.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/nfsiod/nfsiod.c b/sbin/nfsiod/nfsiod.c
index e2479fe2ed55..6ddb42a6b5eb 100644
--- a/sbin/nfsiod/nfsiod.c
+++ b/sbin/nfsiod/nfsiod.c
@@ -108,7 +108,7 @@ main(argc, argv)
num_servers = atoi(optarg);
if (num_servers < 1 || num_servers > MAXNFSDCNT) {
warnx("nfsiod count %d; reset to %d",
- DEFNFSDCNT);
+ num_servers, DEFNFSDCNT);
num_servers = DEFNFSDCNT;
}
break;
@@ -128,7 +128,8 @@ main(argc, argv)
if (argc == 1) {
num_servers = atoi(argv[0]);
if (num_servers < 1 || num_servers > MAXNFSDCNT) {
- warnx("nfsiod count %d; reset to %d", DEFNFSDCNT);
+ warnx("nfsiod count %d; reset to %d", num_servers,
+ DEFNFSDCNT);
num_servers = DEFNFSDCNT;
}
}