.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * (C) 2010,2011 Thomas Renninger <trenn@suse.de>, Novell Inc. |
---|
3 | 4 | * |
---|
4 | | - * Licensed under the terms of the GNU GPL License version 2. |
---|
5 | | - * |
---|
6 | 5 | * Output format inspired by Len Brown's <lenb@kernel.org> turbostat tool. |
---|
7 | | - * |
---|
8 | 6 | */ |
---|
9 | 7 | |
---|
10 | 8 | |
---|
.. | .. |
---|
412 | 410 | dprint("Try to register: %s\n", all_monitors[num]->name); |
---|
413 | 411 | test_mon = all_monitors[num]->do_register(); |
---|
414 | 412 | if (test_mon) { |
---|
415 | | - if (test_mon->needs_root && !run_as_root) { |
---|
| 413 | + if (test_mon->flags.needs_root && !run_as_root) { |
---|
416 | 414 | fprintf(stderr, _("Available monitor %s needs " |
---|
417 | 415 | "root access\n"), test_mon->name); |
---|
418 | 416 | continue; |
---|