http://defect.opensolaris.org/bz/show_bug.cgi?id=8084


Rafael Vanoni <rafael.vanoni at sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ACCEPTED                    |FIXINPROGRESS




--- Comment #1 from Rafael Vanoni <rafael.vanoni at sun.com>  2009-04-09 
17:01:16 ---
diff -r 9ebc92d0cbac usr/src/cmd/powertop/common/powertop.c
--- a/usr/src/cmd/powertop/common/powertop.c    Fri Apr 03 16:25:25 2009 -0700
+++ b/usr/src/cmd/powertop/common/powertop.c    Thu Apr 09 16:59:56 2009 -0700
@@ -263,9 +263,9 @@
                g_tog_p_events  = 0;
                g_total_events  = 0;

-               (void) memset(g_event_info,
-                   EVENT_NUM_MAX * sizeof (event_info_t), 0);
-               (void) memset(g_cstate_info, 2 * sizeof (state_info_t), 0);
+               (void) memset(g_event_info, 0,
+                   EVENT_NUM_MAX * sizeof (event_info_t));
+               (void) memset(g_cstate_info, 0, 2 * sizeof (state_info_t));

                /* Collect idle state transition stats */
                if (features & FEATURE_CSTATE &&

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Reply via email to