Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2011 07:44:12 +0000 (UTC)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r220816 - stable/8/sys/dev/ipmi
Message-ID:  <201104190744.p3J7iC8d098668@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ru
Date: Tue Apr 19 07:44:12 2011
New Revision: 220816
URL: http://svn.freebsd.org/changeset/base/220816

Log:
  MFC r220614:
  
  Fixed firmware revision decoding:
  - the major is 7-bit binary encoded
  - the minor is BCD encoded
  
  PR:		kern/151586

Modified:
  stable/8/sys/dev/ipmi/ipmi.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/dev/ipmi/ipmi.c
==============================================================================
--- stable/8/sys/dev/ipmi/ipmi.c	Tue Apr 19 07:36:53 2011	(r220815)
+++ stable/8/sys/dev/ipmi/ipmi.c	Tue Apr 19 07:44:12 2011	(r220816)
@@ -713,10 +713,10 @@ ipmi_startup(void *arg)
 		return;
 	}
 
-	device_printf(dev, "IPMI device rev. %d, firmware rev. %d.%d, "
+	device_printf(dev, "IPMI device rev. %d, firmware rev. %d.%d%d, "
 	    "version %d.%d\n",
 	     req->ir_reply[1] & 0x0f,
-	     req->ir_reply[2] & 0x0f, req->ir_reply[4],
+	     req->ir_reply[2] & 0x7f, req->ir_reply[3] >> 4, req->ir_reply[3] & 0x0f,
 	     req->ir_reply[4] & 0x0f, req->ir_reply[4] >> 4);
 
 	ipmi_free_request(req);



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