From 41383399cd72de811e983fbbd4b3c7d6cfcfd98d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 24 Jul 2007 01:58:52 +0000 Subject: [PATCH] 2007-07-23 Roland McGrath * time.c (printtv_bitness): SPECIAL only counts when tv_sec == 0. --- time.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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); -- 2.50.1