]> granicus.if.org Git - strace/commit
rtc.c: enhance rtc ioctl parser
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 4 Jul 2015 12:07:35 +0000 (15:07 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 9 Jul 2015 02:01:58 +0000 (02:01 +0000)
commit97317d9d838272ad26a860e12137a7099f5f02ad
tree24f3d1d80431b64f11fdda933f915d7ba5aec43c
parentb679508f6ef838a390d807c1bb4696b096543475
rtc.c: enhance rtc ioctl parser

* rtc.c: Update for RVAL_DECODED.
(print_rtc): Rename to print_rtc_time.
(decode_rtc_time, decode_rtc_wkalrm): New functions.
(rtc_ioctl): Use them.
[RTC_VL_READ]: Decode RTC_VL_READ.
Use printnum_long for RTC_IRQP_READ and RTC_EPOCH_READ decoding.
rtc.c