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