summaryrefslogtreecommitdiffstats
path: root/usr.sbin/powerd
diff options
context:
space:
mode:
authormarck <marck@FreeBSD.org>2007-06-13 19:05:11 +0000
committermarck <marck@FreeBSD.org>2007-06-13 19:05:11 +0000
commitd5c48380b2ed62b521dfb6486f1d5ccfe8ea10bf (patch)
treecccdee3622ee7a5b497ca73893aad6667a8b1cb3 /usr.sbin/powerd
parentfb74a99e0d1f203249890555137ffb25d466c8e2 (diff)
downloadFreeBSD-src-d5c48380b2ed62b521dfb6486f1d5ccfe8ea10bf.zip
FreeBSD-src-d5c48380b2ed62b521dfb6486f1d5ccfe8ea10bf.tar.gz
Failing to set new frequency should not lead to powerd exiting.
Change err(3) to warn(3) as three other cases. Approved by: njl, des
Diffstat (limited to 'usr.sbin/powerd')
-rw-r--r--usr.sbin/powerd/powerd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/powerd/powerd.c b/usr.sbin/powerd/powerd.c
index 4c0d383..1f114d4 100644
--- a/usr.sbin/powerd/powerd.c
+++ b/usr.sbin/powerd/powerd.c
@@ -603,7 +603,7 @@ main(int argc, char * argv[])
cpu_running_mark, curfreq, freqs[i]);
}
if (set_freq(freqs[i]))
- err(1, "error setting CPU frequency %d",
+ warn("error setting CPU frequency %d",
freqs[i]);
} else if (idle > (total * cpu_idle_mark) / 100 &&
curfreq > freqs[numfreqs - 1]) {
OpenPOWER on IntegriCloud