Better debug output.

This commit is contained in:
braga
2006-10-02 14:36:30 +00:00
parent 0ed2ba7306
commit bef11db415

View File

@@ -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__ */