From 1852b6c6943eb426732b01a701dfe6c1ba3f4442 Mon Sep 17 00:00:00 2001 From: Johannes Reinhardt Date: Sat, 12 Jul 2008 02:46:25 +0200 Subject: [PATCH] improved non-empty path free error message --- src/path.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/path.c b/src/path.c index c3990a3..81e97cc 100644 --- a/src/path.c +++ b/src/path.c @@ -77,9 +77,10 @@ void path_free(path* p){ command* tmp; length = g_queue_get_length(p->commands); if(length > 0){ - fprintf(stderr,"freeing non-empty path\n"); + fprintf(stderr,"Freeing non-empty path:\n"); while(g_queue_get_length(p->commands) > 0){ - tmp = g_queue_pop_head(p->commands); + tmp = g_queue_pop_head(p->commands); + fprintf(stderr,"\tTimestamp: %d Turn: %d Accel: %d\n",tmp->ts,tmp->turn,tmp->accel); command_free(tmp); } }