From: Roland McGrath Date: Tue, 24 Jul 2007 01:58:52 +0000 (+0000) Subject: 2007-07-23 Roland McGrath X-Git-Tag: v4.5.18~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41383399cd72de811e983fbbd4b3c7d6cfcfd98d;p=strace 2007-07-23 Roland McGrath * time.c (printtv_bitness): SPECIAL only counts when tv_sec == 0. --- diff --git a/time.c b/time.c index b4c6acf2..b6a2fab9 100644 --- a/time.c +++ b/time.c @@ -83,9 +83,11 @@ printtv_bitness(struct tcb *tcp, long addr, enum bitness_t bitness, int special) struct timeval32 tv; if ((rc = umove(tcp, addr, &tv)) >= 0) { - if (special && tv.tv_usec == UTIME_NOW) + if (special && tv.tv_sec == 0 && + tv.tv_usec == UTIME_NOW) tprintf("UTIME_NOW"); - else if (special && tv.tv_usec == UTIME_OMIT) + else if (special && tv.tv_sec == 0 && + tv.tv_usec == UTIME_OMIT) tprintf("UTIME_OMIT"); else tprint_timeval32(tcp, &tv); @@ -95,9 +97,11 @@ printtv_bitness(struct tcb *tcp, long addr, enum bitness_t bitness, int special) struct timeval tv; if ((rc = umove(tcp, addr, &tv)) >= 0) { - if (special && tv.tv_usec == UTIME_NOW) + if (special && tv.tv_sec == 0 && + tv.tv_usec == UTIME_NOW) tprintf("UTIME_NOW"); - else if (special && tv.tv_usec == UTIME_OMIT) + else if (special && tv.tv_sec == 0 && + tv.tv_usec == UTIME_OMIT) tprintf("UTIME_OMIT"); else tprint_timeval(tcp, &tv);