From 0fd619a44f8b2b30e75b8dbf571acfc5987e27b2 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Tue, 24 Apr 2007 23:08:48 +0000 Subject: [PATCH] Print Unknown Time if the time is unknown of an event. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1366 fd59a12c-fef9-0310-b244-a6a79926bd2f --- test/subscription.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/subscription.c b/test/subscription.c index b09d5a03..af0dbd12 100644 --- a/test/subscription.c +++ b/test/subscription.c @@ -243,6 +243,9 @@ static char time_buf[1024]; char *ais_time_str(SaTimeT time) { time_t t; + if (time == SA_TIME_UNKNOWN) { + return "Unknown Time"; + } t = time / 1000000000ULL; strcpy(time_buf, ctime(&t)); return time_buf;