print out kvm error message, not errno message
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 2 Jul 1991 06:41:15 +0000 (22:41 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 2 Jul 1991 06:41:15 +0000 (22:41 -0800)
SCCS-vsn: bin/ps/nlist.c 5.3

usr/src/bin/ps/nlist.c

index 8bdc6cc..e235b32 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)nlist.c    5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)nlist.c    5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -41,7 +41,7 @@ donlist()
        rval = 0;
        nlistread = 1;
        if (kvm_nlist(psnl)) {
        rval = 0;
        nlistread = 1;
        if (kvm_nlist(psnl)) {
-               (void)fprintf(stderr, "ps: kvm_nlist: %s\n", strerror(errno));
+               (void)fprintf(stderr, "ps: kvm_nlist: %s\n", kvm_geterr());
                eval = 1;
                return(1);
        }
                eval = 1;
                return(1);
        }