tests: use VERBOSE macro in ioctl_rtc and ioctl_rtc-v tests
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 25 Sep 2016 00:10:27 +0000 (00:10 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Sep 2016 15:24:22 +0000 (15:24 +0000)
* tests/ioctl_rtc-v.c (VERBOSE_IOCTL): Remove.
(VERBOSE): Define to 1.
* tests/ioctl_rtc.c (print_rtc_time): Check VERBOSE instead
of VERBOSE_IOCTL.

tests/ioctl_rtc-v.c
tests/ioctl_rtc.c

index abdace1821767d0bfb6cdc5e635842674082a473..62b161559109f651f089856905ad64e72ffadda2 100644 (file)
@@ -1,3 +1,3 @@
 /* This file is part of ioctl_rtc-v strace test. */
-#define VERBOSE_IOCTL
+#define VERBOSE 1
 #include "ioctl_rtc.c"
index ee09955b68ed664eb49ec48dc921b4f7aef1e961..ac967637d11de79a42878e870577ea52cd6e36fa 100644 (file)
@@ -56,7 +56,7 @@ print_rtc_time(const struct rtc_time *rt)
               ", tm_mday=%d, tm_mon=%d, tm_year=%d",
               rt->tm_sec, rt->tm_min, rt->tm_hour,
               rt->tm_mday, rt->tm_mon, rt->tm_year);
-#ifdef VERBOSE_IOCTL
+#if VERBOSE
        printf(", tm_wday=%d, tm_yday=%d, tm_isdst=%d}",
               rt->tm_wday, rt->tm_yday, rt->tm_isdst);
 #else