From: Dmitry V. Levin Date: Sun, 25 Sep 2016 00:10:27 +0000 (+0000) Subject: tests: use VERBOSE macro in ioctl_rtc and ioctl_rtc-v tests X-Git-Tag: v4.14~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a392aaa796f4024f00c5ba15bf6c3ff286281f73;p=strace tests: use VERBOSE macro in ioctl_rtc and ioctl_rtc-v tests * 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. --- diff --git a/tests/ioctl_rtc-v.c b/tests/ioctl_rtc-v.c index abdace18..62b16155 100644 --- a/tests/ioctl_rtc-v.c +++ b/tests/ioctl_rtc-v.c @@ -1,3 +1,3 @@ /* This file is part of ioctl_rtc-v strace test. */ -#define VERBOSE_IOCTL +#define VERBOSE 1 #include "ioctl_rtc.c" diff --git a/tests/ioctl_rtc.c b/tests/ioctl_rtc.c index ee09955b..ac967637 100644 --- a/tests/ioctl_rtc.c +++ b/tests/ioctl_rtc.c @@ -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