[x] I've read and accepted the Bug Reporting Howto
[x] I've provided all required tlp-stat outputs via Gist (see below)
Describe the bug
When tlp-stat -w is run without dmesg/root privileges it prints a somewhat flawed output:
tlp-stat -w
--- TLP 1.6.0 --------------------------------------------
dmesg: read kernel buffer failed: Operation not permitted
No warnings detected.
The first issue with the output is obviously the No warnings detected. message which is technically correct, but could quickly mislead a less savvy user. The second issue is that behavior differs from other privilege-requiring operations, such as tlp-stat -b, which outputs:
Error: missing root privilege.
Expected behavior
All privilege-requiring operations to communicate the missing-privilege error in an uniform way.
[x] I've read and accepted the Bug Reporting Howto [x] I've provided all required
tlp-stat
outputs via Gist (see below)Describe the bug
When
tlp-stat -w
is run without dmesg/root privileges it prints a somewhat flawed output:The first issue with the output is obviously the No warnings detected. message which is technically correct, but could quickly mislead a less savvy user. The second issue is that behavior differs from other privilege-requiring operations, such as
tlp-stat -b
, which outputs:Expected behavior
All privilege-requiring operations to communicate the missing-privilege error in an uniform way.
To Reproduce
tlp-stat -w
as an unprivileged user