Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Improve error messages.



details:   https://anonhg.NetBSD.org/src/rev/a94fd019ec56
branches:  trunk
changeset: 573117:a94fd019ec56
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 19 22:59:24 2005 +0000

description:
Improve error messages.

diffstat:

 lib/libc/gen/pw_scan.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r c697a6b37904 -r a94fd019ec56 lib/libc/gen/pw_scan.c
--- a/lib/libc/gen/pw_scan.c    Wed Jan 19 22:40:37 2005 +0000
+++ b/lib/libc/gen/pw_scan.c    Wed Jan 19 22:59:24 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pw_scan.c,v 1.16 2005/01/19 22:40:37 christos Exp $    */
+/*     $NetBSD: pw_scan.c,v 1.17 2005/01/19 22:59:24 christos Exp $    */
 
 /*
  * Copyright (c) 1987, 1993, 1994, 1995
@@ -36,7 +36,7 @@
 #else
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: pw_scan.c,v 1.16 2005/01/19 22:40:37 christos Exp $");
+__RCSID("$NetBSD: pw_scan.c,v 1.17 2005/01/19 22:59:24 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #if defined(_LIBC)
@@ -65,6 +65,7 @@
        long l;
        char *ep;
 
+printf("time %s %x\n", p, flag);
        if (*p == '\0') {
                *flags |= flag;
                *res = 0;
@@ -84,7 +85,7 @@
        return 1;
 done:
        if (dowarn) {
-               warnx("%s value `%s' for %s time", ep, p,
+               warnx("%s `%s' for %s time", ep, p,
                    flag == _PASSWORD_NOEXP ? "expiration" : "change");
        }
        return 0;
@@ -120,7 +121,7 @@
        return 1;
 done:
        if (dowarn)
-               warnx("%s %s value `%s'", ep, 
+               warnx("%s %s `%s'", ep, 
                    flag == _PASSWORD_NOUID ? "uid" : "gid", p);
        return 0;
 



Home | Main Index | Thread Index | Old Index