Module Name:    src
Committed By:   jmcneill
Date:           Sun Dec  4 19:34:22 UTC 2011

Modified Files:
        src/usr.sbin/envstat: envstat.c

Log Message:
change printed indicator and battery charge strings from ON and OFF to TRUE
and FALSE, because messages like "battery present: ON" are difficult for my
brain to parse.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/usr.sbin/envstat/envstat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/envstat/envstat.c
diff -u src/usr.sbin/envstat/envstat.c:1.88 src/usr.sbin/envstat/envstat.c:1.89
--- src/usr.sbin/envstat/envstat.c:1.88	Tue Jun  7 17:24:32 2011
+++ src/usr.sbin/envstat/envstat.c	Sun Dec  4 19:34:22 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: envstat.c,v 1.88 2011/06/07 17:24:32 pgoyette Exp $ */
+/* $NetBSD: envstat.c,v 1.89 2011/12/04 19:34:22 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: envstat.c,v 1.88 2011/06/07 17:24:32 pgoyette Exp $");
+__RCSID("$NetBSD: envstat.c,v 1.89 2011/12/04 19:34:22 jmcneill Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -811,7 +811,7 @@ print_sensors(void)
 		if ((strcmp(sensor->type, "Indicator") == 0) ||
 		    (strcmp(sensor->type, "Battery charge") == 0)) {
 
-			(void)printf(":%10s", sensor->cur_value ? "ON" : "OFF");
+			(void)printf(":%10s", sensor->cur_value ? "TRUE" : "FALSE");
 
 /* convert and print a temp value in degC, degF, or Kelvin */
 #define PRINTTEMP(a)						\

Reply via email to