diff options
author | esolom <none@none> | 2005-09-14 13:30:18 -0700 |
---|---|---|
committer | esolom <none@none> | 2005-09-14 13:30:18 -0700 |
commit | 5bb4956e405ff1743d8fced6053065e1d9f09971 (patch) | |
tree | e71b819338b46f2a6fbf61b441436059b5a25fba /usr/src/cmd/intrd | |
parent | 4cb30b8ac38beefa2bb9c8f9bf6337927ccbd47c (diff) | |
download | illumos-gate-5bb4956e405ff1743d8fced6053065e1d9f09971.tar.gz |
6322367 minor bugs in intrd, warning of uninitialized variable in log output
Diffstat (limited to 'usr/src/cmd/intrd')
-rwxr-xr-x | usr/src/cmd/intrd/intrd.pl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/src/cmd/intrd/intrd.pl b/usr/src/cmd/intrd/intrd.pl index 79b9ce5abe..6cd60a05bb 100755 --- a/usr/src/cmd/intrd/intrd.pl +++ b/usr/src/cmd/intrd/intrd.pl @@ -341,11 +341,10 @@ sub dumpdelta($) # iterate over ivecs on this cpu while (my ($ivec, $ivst) = each %{$cpst->{ivecs}}) { - syslog('debug', " %15s:%5d: %7.3f%% %d", - ($ivst->{ihs} > 1 ? - "$ivst->{name}($ivst->{ihs})" : - $ivst->{name}), - $ivec, $ivst->{time}*100 / $tot, $ivst->{time}); + syslog('debug', " %15s:\"%s\": %7.3f%% %d", + ($ivst->{ihs} > 1 ? "$ivst->{name}($ivst->{ihs})" : + $ivst->{name}), $ivec, + $ivst->{time}*100 / $tot, $ivst->{time}); } } } @@ -1062,8 +1061,8 @@ sub find_goal($$) # private function $tot -= $ivec->{time}; } ($load, @goals) = do_find_goal($ivecs, \@loads, $goal, 0); + VERIFY($load >= $goal, "find_goal didn't meet goals"); } - VERIFY($load >= $goal, "find_goal didn't meet goals"); syslog('debug', "goals found: %s", ivecs_to_string(@goals)); # Set or clear $ivec->{goal} for each ivec, based on returned @goals |