Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Clean up display of initial hardware provided li...
details: https://anonhg.NetBSD.org/src/rev/04cde8bc9344
branches: trunk
changeset: 773434:04cde8bc9344
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Feb 02 02:47:59 2012 +0000
description:
Clean up display of initial hardware provided limits. No functional change.
diffstat:
sys/dev/i2c/sdtemp.c | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
diffs (51 lines):
diff -r 3a8bcca59b64 -r 04cde8bc9344 sys/dev/i2c/sdtemp.c
--- a/sys/dev/i2c/sdtemp.c Thu Feb 02 02:44:06 2012 +0000
+++ b/sys/dev/i2c/sdtemp.c Thu Feb 02 02:47:59 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdtemp.c,v 1.20 2011/10/02 19:03:56 jmcneill Exp $ */
+/* $NetBSD: sdtemp.c,v 1.21 2012/02/02 02:47:59 pgoyette Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.20 2011/10/02 19:03:56 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.21 2012/02/02 02:47:59 pgoyette Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -283,27 +283,24 @@
/* Retrieve and display hardware monitor limits */
sdtemp_get_limits(sc->sc_sme, sc->sc_sensor, &sc->sc_deflims,
&sc->sc_defprops);
- aprint_normal("%s: ", device_xname(self));
+ aprint_normal_dev(self, "Hardware limits: ");
i = 0;
if (sc->sc_defprops & PROP_WARNMIN) {
- aprint_normal("low limit %dC",
+ aprint_normal("low %dC",
__UK2C(sc->sc_deflims.sel_warnmin));
i++;
}
if (sc->sc_defprops & PROP_WARNMAX) {
- aprint_normal("%shigh limit %dC ", (i)?", ":"",
+ aprint_normal("%shigh %dC ", (i)?", ":"",
__UK2C(sc->sc_deflims.sel_warnmax));
i++;
}
if (sc->sc_defprops & PROP_CRITMAX) {
- aprint_normal("%scritical limit %dC ", (i)?", ":"",
+ aprint_normal("%scritical %dC ", (i)?", ":"",
__UK2C(sc->sc_deflims.sel_critmax));
i++;
}
- if (i == 0)
- aprint_normal("no hardware limits set\n");
- else
- aprint_normal("\n");
+ aprint_normal("%s\n", (i)?"":"none set");
return;
Home |
Main Index |
Thread Index |
Old Index