Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/config If maxusers is out of bounds, show the allow...



details:   https://anonhg.NetBSD.org/src/rev/68b17ef9488b
branches:  trunk
changeset: 485939:68b17ef9488b
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Tue May 09 00:34:58 2000 +0000

description:
If maxusers is out of bounds, show the allowed bounts in the error msg.

diffstat:

 usr.sbin/config/sem.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 69dd767393b0 -r 68b17ef9488b usr.sbin/config/sem.c
--- a/usr.sbin/config/sem.c     Tue May 09 00:32:19 2000 +0000
+++ b/usr.sbin/config/sem.c     Tue May 09 00:34:58 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sem.c,v 1.25 2000/01/25 01:16:00 enami Exp $   */
+/*     $NetBSD: sem.c,v 1.26 2000/05/09 00:34:58 hubertf Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -147,7 +147,7 @@
 {
 
        if (min < 1 || min > def || def > max)
-               error("maxusers must have 1 <= min <= default <= max");
+               error("maxusers must have 1 <= min (%d) <= default (%d) <= max (%d)", min, def, max);
        else {
                minmaxusers = min;
                defmaxusers = def;



Home | Main Index | Thread Index | Old Index