diff options
Diffstat (limited to 'components/cpu.c')
-rw-r--r-- | components/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/cpu.c b/components/cpu.c index 02e7671..b9b3924 100644 --- a/components/cpu.c +++ b/components/cpu.c @@ -57,7 +57,7 @@ size = sizeof(freq); if (sysctl(mib, 2, &freq, &size, NULL, 0) < 0) { - fprintf(stderr, "sysctl 'HW_CPUSPEED': %s\n", strerror(errno)); + warn("sysctl 'HW_CPUSPEED':"); return NULL; } @@ -80,7 +80,7 @@ memcpy(b, a, sizeof(b)); if (sysctl(mib, 2, &a, &size, NULL, 0) < 0) { - fprintf(stderr, "sysctl 'KERN_CPTIME': %s\n", strerror(errno)); + warn("sysctl 'KERN_CPTIME':"); return NULL; } if (!valid) { |