Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2007 03:13:51 GMT
From:      "Constantine A. Murenin" <cnst@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 124247 for review
Message-ID:  <200707280313.l6S3Dphs014313@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124247

Change 124247 by cnst@dale on 2007/07/28 03:13:01

	remove debugging printouts that lm(4) produced to the console

Affected files ...

.. //depot/projects/soc2007/cnst-sensors/sys.dev.lm/lm78.c#6 edit

Differences ...

==== //depot/projects/soc2007/cnst-sensors/sys.dev.lm/lm78.c#6 (text+ko) ====

@@ -1,4 +1,4 @@
-/*	$P4: //depot/projects/soc2007/cnst-sensors/sys.dev.lm/lm78.c#5 $	*/
+/*	$P4: //depot/projects/soc2007/cnst-sensors/sys.dev.lm/lm78.c#6 $	*/
 /*	$FreeBSD$	*/
 /*	$OpenBSD: lm78.c,v 1.18 2007/05/26 22:47:39 cnst Exp $	*/
 
@@ -407,7 +407,7 @@
 	if (sc->numsensors == 0)
 		return;
 
-	if (sensor_task_register(sc, lm_refresh, 8*60 /* 8 minutes */)) {
+	if (sensor_task_register(sc, lm_refresh, 5)) {
 		device_printf(sc->sc_dev, "unable to register update task\n");
 		return;
 	}
@@ -422,16 +422,6 @@
 	for (i = 0; i < sc->numsensors; ++i)
 		sensor_attach(&sc->sensordev, &sc->sensors[i]);
 	sensordev_install(&sc->sensordev);
-
-#ifdef SENSORS_DEBUG
-	sc->refresh_sensor_data(sc);
-	for (i = 0; i < sc->numsensors; ++i) {
-		struct ksensor *s = &sc->sensors[i];
-		printf("%s:	s=%s,	t=%i,	n=%i,	v=%lld\n",
-		    device_get_nameunit(sc->sc_dev),
-		    s->desc, s->type, s->numt, s->value);
-	}
-#endif
 }
 
 int
@@ -633,23 +623,8 @@
 lm_refresh(void *arg)
 {
 	struct lm_softc *sc = arg;
-#ifdef SENSORS_DEBUG
-	int i;
-#endif
 
 	sc->refresh_sensor_data(sc);
-
-#ifdef SENSORS_DEBUG
-	for (i = 0; i < sc->numsensors; ++i) {
-		struct ksensor *s = &sc->sensors[i];
-
-		if (s->value == 0)
-			continue;
-		printf("%s:	s=%s,	t=%i,	n=%i,	v=%lld\n",
-		    device_get_nameunit(sc->sc_dev),
-		    s->desc, s->type, s->numt, s->value);
-	}
-#endif
 }
 
 void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707280313.l6S3Dphs014313>