Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Use the standard i2c address to DIMM slot mappin...
details: https://anonhg.NetBSD.org/src/rev/04e1f45b40e3
branches: trunk
changeset: 788830:04e1f45b40e3
user: soren <soren%NetBSD.org@localhost>
date: Mon Jul 22 13:46:20 2013 +0000
description:
Use the standard i2c address to DIMM slot mapping to show the slot number.
diffstat:
sys/dev/i2c/sdtemp.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 25c5fbd278fc -r 04e1f45b40e3 sys/dev/i2c/sdtemp.c
--- a/sys/dev/i2c/sdtemp.c Mon Jul 22 13:44:59 2013 +0000
+++ b/sys/dev/i2c/sdtemp.c Mon Jul 22 13:46:20 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdtemp.c,v 1.21 2012/02/02 02:47:59 pgoyette Exp $ */
+/* $NetBSD: sdtemp.c,v 1.22 2013/07/22 13:46:20 soren Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.21 2012/02/02 02:47:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.22 2013/07/22 13:46:20 soren Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -262,6 +262,8 @@
sc->sc_sensor->flags |= ENVSYS_FMONLIMITS;
(void)strlcpy(sc->sc_sensor->desc, device_xname(self),
sizeof(sc->sc_sensor->desc));
+ snprintf(sc->sc_sensor->desc, sizeof(sc->sc_sensor->desc),
+ "DIMM %d temperature", sc->sc_address - SDTEMP_ADDR);
/* Now attach the sensor */
if (sysmon_envsys_sensor_attach(sc->sc_sme, sc->sc_sensor)) {
Home |
Main Index |
Thread Index |
Old Index