summaryrefslogtreecommitdiff
path: root/usr/src/cmd/intrd
diff options
context:
space:
mode:
authoresolom <none@none>2005-09-14 13:30:18 -0700
committeresolom <none@none>2005-09-14 13:30:18 -0700
commit5bb4956e405ff1743d8fced6053065e1d9f09971 (patch)
treee71b819338b46f2a6fbf61b441436059b5a25fba /usr/src/cmd/intrd
parent4cb30b8ac38beefa2bb9c8f9bf6337927ccbd47c (diff)
downloadillumos-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-xusr/src/cmd/intrd/intrd.pl11
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