summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-13 15:59:41 +0000
committerbde <bde@FreeBSD.org>1995-07-13 15:59:41 +0000
commit9696e88733242ee86a01e1c3d6332d8c8118566e (patch)
treefab9c9454c2228bc8973a9aaf04abd7ffae021dc /usr.sbin/pppstats
parent3757373413d06eb111b5210c8dec4258bc08e7c4 (diff)
downloadFreeBSD-src-9696e88733242ee86a01e1c3d6332d8c8118566e.zip
FreeBSD-src-9696e88733242ee86a01e1c3d6332d8c8118566e.tar.gz
There was no newline in the error message for kvm_openfiles().
Diffstat (limited to 'usr.sbin/pppstats')
-rw-r--r--usr.sbin/pppstats/pppstats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pppstats/pppstats.c b/usr.sbin/pppstats/pppstats.c
index 454c4dd..cfde7b8 100644
--- a/usr.sbin/pppstats/pppstats.c
+++ b/usr.sbin/pppstats/pppstats.c
@@ -26,7 +26,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: pppstats.c,v 1.3 1994/11/19 13:57:06 jkh Exp $";
+static char rcsid[] = "$Id: pppstats.c,v 1.4 1995/05/30 03:51:18 rgrimes Exp $";
#endif
#include <ctype.h>
@@ -215,13 +215,13 @@ main(argc, argv)
#elif defined(BSD4_4)
/* BSD4.4+ */
if ((kd = kvm_openfiles(system, kmemf, NULL, O_RDONLY, errbuf)) == NULL) {
- fprintf(stderr, "kvm_openfiles: %s", errbuf);
+ fprintf(stderr, "kvm_openfiles: %s\n", errbuf);
exit(1);
}
#else
/* BSD4.3+ */
if (kvm_openfiles(system, kmemf, (char *)0) == -1) {
- fprintf(stderr, "kvm_openfiles: %s", kvm_geterr());
+ fprintf(stderr, "kvm_openfiles: %s\n", kvm_geterr());
exit(1);
}
#endif
OpenPOWER on IntegriCloud