From 5179437ab2fa6a5d07707dd59fe63e59e60c5911 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 16 Jan 2001 22:35:24 +0000 Subject: fix debug output (print_remote): ditto 2001-01-16 JP Rosevear * conduits/todo/todo-conduit.c (print_local): fix debug output (print_remote): ditto svn path=/trunk/; revision=7548 --- calendar/ChangeLog | 5 +++++ calendar/conduits/todo/todo-conduit.c | 20 +++++++------------- 2 files changed, 12 insertions(+), 13 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 030ac6270d..ec86c60745 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2001-01-16 JP Rosevear + + * conduits/todo/todo-conduit.c (print_local): fix debug output + (print_remote): ditto + 2001-01-15 JP Rosevear * pcs/cal-backend.c (cal_backend_compute_changes): accomadate tasks diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c index 7d36dc5e10..07fe9f3122 100644 --- a/calendar/conduits/todo/todo-conduit.c +++ b/calendar/conduits/todo/todo-conduit.c @@ -78,13 +78,10 @@ print_local (EToDoLocalRecord *local) if (local->todo && local->todo->description) { g_snprintf (buff, 4096, "[%d %ld %d %d '%s' '%s']", - local->todo->indefinite ? - local->todo->indefinite : "", + local->todo->indefinite, mktime (& local->todo->due), - local->todo->priority ? - local->todo->priority : "", - local->todo->complete ? - local->todo->complete : "", + local->todo->priority, + local->todo->complete, local->todo->description ? local->todo->description : "", local->todo->note ? @@ -108,14 +105,11 @@ static char *print_remote (GnomePilotRecord *remote) memset (&todo, 0, sizeof (struct ToDo)); unpack_ToDo (&todo, remote->record, remote->length); - g_snprintf (buff, "[%d %ld %d %d '%s' '%s']", - todo.indefinite ? - todo.indefinite : "", + g_snprintf (buff, 4096, "[%d %ld %d %d '%s' '%s']", + todo.indefinite, mktime (&todo.due), - todo.priority ? - todo.priority : "", - todo.complete ? - todo.complete : "", + todo.priority, + todo.complete, todo.description ? todo.description : "", todo.note ? -- cgit v1.2.3