From owner-p4-projects@FreeBSD.ORG Sat Jul 21 23:38:57 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C2A4816A419; Sat, 21 Jul 2007 23:38:57 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CD5116A417 for ; Sat, 21 Jul 2007 23:38:57 +0000 (UTC) (envelope-from cnst@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7A44213C459 for ; Sat, 21 Jul 2007 23:38:57 +0000 (UTC) (envelope-from cnst@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6LNcv7h045394 for ; Sat, 21 Jul 2007 23:38:57 GMT (envelope-from cnst@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6LNcuQW045391 for perforce@freebsd.org; Sat, 21 Jul 2007 23:38:56 GMT (envelope-from cnst@FreeBSD.org) Date: Sat, 21 Jul 2007 23:38:56 GMT Message-Id: <200707212338.l6LNcuQW045391@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to cnst@FreeBSD.org using -f From: "Constantine A. Murenin" To: Perforce Change Reviews Cc: Subject: PERFORCE change 123873 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2007 23:38:58 -0000 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);