util-linux/sys-utils
Karel Zak b3fc2a3c33 hwclock: report rtc open() errors on --verbose
Let's be more verbose and provide real open() error to make
debugging easier on --verbose.

For example:

$ hwclock --verbose
hwclock from util-linux 2.34.193-6bebea-dirty
System Time: 1570445823.701266
Trying to open: /dev/rtc0
hwclock: cannot open /dev/rtc0: Permission denied          <---
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.

Addresses: https://github.com/karelzak/util-linux/issues/879
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-10-07 12:57:43 +02:00
..
.gitignore build-sys: support ./configure ADJTIME_PATH= 2014-06-19 10:30:56 +02:00
Makemodule.am hwclock: use CMOS clock only if available 2019-07-15 13:56:13 +02:00
adjtime_config.5 cleanup: Remove some spurious spaces 2019-10-01 13:01:43 +02:00
blkdiscard.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
blkdiscard.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
blkzone.8 cleanup: Remove some spurious spaces 2019-10-01 13:01:43 +02:00
blkzone.c blkzone: remove never read value 2019-05-23 13:57:35 +02:00
chcpu.8 sys-utils/manuals: Make the number of the paired macros ".RS" and ".RE" equal 2019-08-27 09:31:10 +02:00
chcpu.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
chmem.8 man: Use the correct macro for a font change of one argument 2018-05-23 10:43:27 +02:00
chmem.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
choom.1 choom: improve docs 2019-08-01 11:06:06 +02:00
choom.c choom: improve docs 2019-08-01 11:06:06 +02:00
ctrlaltdel.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ctrlaltdel.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
dmesg.1 cleanup: Remove some spurious spaces 2019-10-01 13:01:43 +02:00
dmesg.c dmesg: do not stop on \0 2019-09-10 10:34:01 +02:00
eject.1 eject: use O_EXCL on default 2019-08-22 13:05:06 +02:00
eject.c eject: use O_EXCL on default 2019-08-22 13:05:06 +02:00
fallocate.1 fallocate: add man page note about --collapse-range granularity 2018-07-03 13:51:51 +02:00
fallocate.c fallocate: make posix_fadvise() use more readable for analyzers 2019-05-23 15:17:16 +02:00
flock.1 man: Use the correct macro for a font change of one argument 2018-05-23 10:43:27 +02:00
flock.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
fsfreeze.8 man: Use the correct macro for a font change of one argument 2018-05-23 10:43:27 +02:00
fsfreeze.c fsfreeze: remove unnecessary condition [lgtm scan] 2019-09-20 15:57:31 +02:00
fstab.5 Merge branch '2019wk33' of https://github.com/kerolasa/util-linux 2019-08-27 10:11:02 +02:00
fstrim.8 fstrim: ignore non-directory mountpoints 2019-09-05 16:32:10 +02:00
fstrim.c fstrim: ignore non-directory mountpoints 2019-09-05 16:32:10 +02:00
fstrim.service.in fstrim shouldn't run inside a container 2019-08-14 13:31:25 -04:00
fstrim.timer fstrim shouldn't run inside a container 2019-08-14 13:31:25 -04:00
hwclock-cmos.c hwclock: use CMOS clock only if available 2019-07-15 13:56:13 +02:00
hwclock-rtc.c hwclock: report rtc open() errors on --verbose 2019-10-07 12:57:43 +02:00
hwclock.8.in docs: try to find broken man references and fix them 2019-08-26 19:43:40 +01:00
hwclock.c hwclock: report rtc open() errors on --verbose 2019-10-07 12:57:43 +02:00
hwclock.h hwclock: add --delay <seconds> 2018-07-18 13:59:15 +02:00
ipcmk.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ipcmk.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
ipcrm.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ipcrm.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
ipcs.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ipcs.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
ipcutils.c ipcs: check return value when read from /proc [coverity scan] 2019-05-23 15:32:59 +02:00
ipcutils.h ipcs: use new ul_path_* API 2018-06-21 13:07:46 +02:00
ldattach.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ldattach.c misc: replaces atexit(close_stdout) with new close_stdout_atexit() 2019-06-17 15:46:10 +02:00
losetup.8 losetup: man page has repeating words [make checkmans] 2019-04-24 12:43:27 +02:00
losetup.c losetup: Typo fix 2019-06-21 14:38:32 +02:00
lscpu-arm.c lscpu: Add additional aarch64 models 2019-05-16 12:10:17 -05:00
lscpu-dmi.c lscpu: prefer memcpy() to manual pointer arithmetic 2019-07-27 19:00:34 +01:00
lscpu.1 lscpu: (man) add note about cache sizes 2019-07-25 12:23:59 +02:00
lscpu.c misc: replaces atexit(close_stdout) with new close_stdout_atexit() 2019-06-17 15:46:10 +02:00
lscpu.h lscpu: add a new columns to --cache 2019-06-17 15:46:10 +02:00
lsipc.1 lsipc: fix options parsing and sync with man page 2017-05-02 23:22:04 +01:00
lsipc.c misc: replaces atexit(close_stdout) with new close_stdout_atexit() 2019-06-17 15:46:10 +02:00
lsmem.1 lsmem: add --output-all option 2018-05-03 19:56:20 +01:00
lsmem.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
lsns.8 lsns: add --output-all option 2018-05-03 19:56:21 +01:00
lsns.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
mount.8 Merge branch '2019wk33' of https://github.com/kerolasa/util-linux 2019-08-27 10:11:02 +02:00
mount.c cleanup: Remove some spurious spaces 2019-10-01 13:01:43 +02:00
mountpoint.1 misc: fix typos [codespell] 2019-09-12 19:41:46 +01:00
mountpoint.c mountpoint: add --nofollow option 2019-08-02 19:39:05 +01:00
nsenter.1 man: Use the correct macro for a font change of one argument 2018-05-23 10:43:27 +02:00
nsenter.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
pivot_root.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
pivot_root.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
prlimit.1 docs: try to find broken man references and fix them 2019-08-26 19:43:40 +01:00
prlimit.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
readprofile.8 Fix man page typos 2018-08-16 11:09:15 +02:00
readprofile.c readprofile: be more explicit with used types [cppcheck] 2019-05-28 12:17:26 +02:00
renice.1 docs: try to find broken man references and fix them 2019-08-26 19:43:40 +01:00
renice.c renice: make code more readable for static analyzer [coverity scan] 2019-05-28 12:19:23 +02:00
rfkill.8 rfkill: add --output-all option 2018-05-03 19:56:21 +01:00
rfkill.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
rtcwake.8.in rtcwake: fix "maybe be" duplication 2019-05-15 13:49:13 +02:00
rtcwake.c rtcwake: terminate mode and excl[] 2019-05-28 12:53:58 +02:00
setarch.8 docs: try to find broken man references and fix them 2019-08-26 19:43:40 +01:00
setarch.c setarch: avoid NULL dereference [coverity check] 2019-05-28 13:08:21 +02:00
setpriv.1 setpriv: add --reset-env 2018-08-22 11:43:32 +02:00
setpriv.c unshare: add --keep-caps option 2019-09-09 20:23:08 -07:00
setsid.1 setsid: new option --fork 2017-11-08 11:38:26 +01:00
setsid.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
swapoff.8 build-sys: move swapon from mount/ to sys-utils/ 2012-01-11 12:14:29 +01:00
swapoff.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
swapon-common.c mount, umount, swapon, fsck, lsblk, findmnt: harmonize six error messages 2016-03-16 10:39:38 +01:00
swapon-common.h swapon: split swapon-common.c 2014-09-22 13:16:25 +02:00
swapon.8 docs: try to find broken man references and fix them 2019-08-26 19:43:40 +01:00
swapon.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
switch_root.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
switch_root.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
tunelp.8 tunelp: use linux header 2017-07-31 13:48:04 +02:00
tunelp.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
umount.8 Fix man page typos 2018-08-16 11:09:15 +02:00
umount.c umount: be more strict about --all 2019-06-06 14:56:48 +02:00
unshare.1 unshare: add --keep-caps option 2019-09-09 20:23:08 -07:00
unshare.c unshare: add --keep-caps option 2019-09-09 20:23:08 -07:00
wdctl.8 wdctl; read from /sys if necessary 2019-06-17 15:47:39 +02:00
wdctl.c wdctl: remove duplicate include of <unistd.h> 2019-08-19 15:00:35 +02:00
zramctl.8 zramctl: (man) explain that --find is necessary 2018-06-11 11:14:56 +02:00
zramctl.c zramctl: use xstrncpy() 2019-05-20 12:59:40 +02:00