From owner-freebsd-current@FreeBSD.ORG Wed Jun 30 19:49:26 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6EA416A4CE for ; Wed, 30 Jun 2004 19:49:26 +0000 (GMT) Received: from ns1.interbgc.com (mail.interbgc.com [217.9.224.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 8B3DF43D41 for ; Wed, 30 Jun 2004 19:49:25 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: (qmail 42272 invoked from network); 30 Jun 2004 19:49:19 -0000 Received: from nike_d@cytexbg.com by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.1.60/v4335. spamassassin: 2.63. Clear:SA:0(-4.9/8.0):. Processed in 0.416003 secs); 30 Jun 2004 19:49:19 -0000 X-Spam-Status: No, hits=-4.9 required=8.0 Received: from 213-240-206-214.ddns.cablebg.net (HELO tormentor.totalterror.net) (213.240.206.214) by mail.interbgc.com with SMTP; 30 Jun 2004 19:49:18 -0000 Received: (qmail 87735 invoked from network); 30 Jun 2004 19:48:28 -0000 Received: from unknown (HELO phobos.totalterror.net) (10.0.0.2) by tormentor.totalterror.net with SMTP; 30 Jun 2004 19:48:28 -0000 Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Niki Denev To: current@freebsd.org Date: Wed, 30 Jun 2004 22:49:44 +0300 Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=_mimegpg-phobos.totalterror.net-732-1088624984-0001"; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: duplicated/bad output from apm(8) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 19:49:26 -0000 This is a MIME GnuPG-signed message. If you see this text, it means that your E-mail or Usenet software does not support MIME signed messages. --=_mimegpg-phobos.totalterror.net-732-1088624984-0001 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit It seems that one of the last few commits to 'usr.sbin/apm/apm.c' introduced an extra printf for the battery status output. And the output is like this : Number of batteries: 1 Battery 0: Battery status: Battery Status: charging ^^^^^^^^^^^^^^^^^^^^^^^ This is extra here is the patch that i used to fix the output for me and my precious X31 :) ---------------------------------------------------------------------------- --- usr.sbin/apm/apm.c.orig Wed Jun 30 22:26:28 2004 +++ usr.sbin/apm/apm.c Wed Jun 30 22:35:12 2004 @@ -226,7 +226,6 @@ if (ioctl(fd, APMIO_GETPWSTATUS, &aps) == -1) continue; printf("Battery %d:\n", i); - printf("\tBattery status: "); if (aps.ap_batt_flag <= 255 && (aps.ap_batt_flag & APM_BATT_NOT_PRESENT)) { printf("not present\n"); ---------------------------------------------------------------------------- -- Regards, Niki Denev --=_mimegpg-phobos.totalterror.net-732-1088624984-0001 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBA4xlYHNAJ/fLbfrkRAiTyAJ9k4khbdsFbQSrfNw4XFbC3XBmiWQCfW5zM mTxm36Af9g0phY0AfEHxJ/I= =8xS2 -----END PGP SIGNATURE----- --=_mimegpg-phobos.totalterror.net-732-1088624984-0001--