Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/envstat change printed indicator and battery charge...
details: https://anonhg.NetBSD.org/src/rev/d4ff827edfff
branches: trunk
changeset: 771865:d4ff827edfff
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Dec 04 19:34:22 2011 +0000
description:
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.
diffstat:
usr.sbin/envstat/envstat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6c7659c41d16 -r d4ff827edfff usr.sbin/envstat/envstat.c
--- a/usr.sbin/envstat/envstat.c Sun Dec 04 19:24:58 2011 +0000
+++ b/usr.sbin/envstat/envstat.c Sun Dec 04 19:34:22 2011 +0000
@@ -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 @@
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) \
Home |
Main Index |
Thread Index |
Old Index