From: Vincent Brillault Date: Fri, 22 Aug 2014 23:06:30 +0000 (+0200) Subject: Turbostat: reorder checks: start with 'uid == 0 ?' X-Git-Tag: collectd-5.5.0~24^2~67 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a4d9af68ac36998d90d6571103cc940eff26deb7;p=collectd.git Turbostat: reorder checks: start with 'uid == 0 ?' --- diff --git a/src/turbostat.c b/src/turbostat.c index 6a1b933d..aef66286 100644 --- a/src/turbostat.c +++ b/src/turbostat.c @@ -1449,9 +1449,9 @@ turbostat_init(void) { int ret; + DO_OR_GOTO_ERR(check_super_user()); DO_OR_GOTO_ERR(probe_cpu()); DO_OR_GOTO_ERR(check_dev_msr()); - DO_OR_GOTO_ERR(check_super_user()); DO_OR_GOTO_ERR(setup_all_buffers()); DO_OR_GOTO_ERR(for_all_cpus(set_temperature_target, EVEN_COUNTERS));