From bef11db415843220fb31ebaf9f2c2f459b2cc265 Mon Sep 17 00:00:00 2001 From: braga Date: Mon, 2 Oct 2006 14:36:30 +0000 Subject: [PATCH] Better debug output. --- ftpfs.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ftpfs.h b/ftpfs.h index ccb03cb..19372df 100644 --- a/ftpfs.h +++ b/ftpfs.h @@ -67,6 +67,11 @@ struct ftpfs { extern struct ftpfs ftpfs; #define DEBUG(args...) \ - do { if (ftpfs.debug) fprintf(stderr, args); } while(0) + do { if (ftpfs.debug) {\ + fprintf(stderr, "%ld ", time(NULL));\ + fprintf(stderr, __FILE__ ":%d ", __LINE__);\ + fprintf(stderr, args);\ + }\ + } while(0) #endif /* __CURLFTPFS_FTPFS_H__ */