Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2007 23:38:56 GMT
From:      "Constantine A. Murenin" <cnst@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 123873 for review
Message-ID:  <200707212338.l6LNcuQW045391@repoman.freebsd.org>

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

Change 123873 by cnst@dale on 2007/07/21 23:38:16

	don't put '\n' at the end of desc when we don't know what exact chip we deal with
	(missed from my previous submit converting lm(4) to use device_set_desc)

Affected files ...

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

Differences ...

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

@@ -1,4 +1,4 @@
-/*	$P4: //depot/projects/soc2007/cnst-sensors/sys.dev.lm/lm78.c#4 $	*/
+/*	$P4: //depot/projects/soc2007/cnst-sensors/sys.dev.lm/lm78.c#5 $	*/
 /*	$FreeBSD$	*/
 /*	$OpenBSD: lm78.c,v 1.18 2007/05/26 22:47:39 cnst Exp $	*/
 
@@ -491,7 +491,7 @@
 
 	chipid = sc->lm_readreg(sc, LM_CHIPID) & LM_CHIPID_MASK;
 	snprintf(fulldesc, sizeof(fulldesc),
-	    "unknown Hardware Monitor (ID 0x%x)\n", chipid);
+	    "unknown Hardware Monitor (ID 0x%x)", chipid);
 	device_set_desc_copy(sc->sc_dev, fulldesc);
 
 	lm_setup_sensors(sc, lm78_sensors);
@@ -594,7 +594,8 @@
 		break;
 	default:
 		snprintf(fulldesc, sizeof(fulldesc),
-		    "unknown Winbond Hardware Monitor (Chip ID 0x%x)\n", sc->chipid);
+		    "unknown Winbond Hardware Monitor (Chip ID 0x%x)",
+		    sc->chipid);
 		device_set_desc_copy(sc->sc_dev, fulldesc);
 		/* Handle as a standard LM78. */
 		lm_setup_sensors(sc, lm78_sensors);



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