Check-in [ddfec93915]
Overview
Comment:Updated to only emit debugging output for debugging builds
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ddfec93915bb2e5283b906c8e27e113626e2f893
User & Date: rkeene on 2014-09-18 17:48:58
Other Links: manifest | tags
Context
2014-09-18
17:49
Added SQLite indexes to tables for faster lookup check-in: 222e571ce8 user: rkeene tags: trunk
17:48
Updated to only emit debugging output for debugging builds check-in: ddfec93915 user: rkeene tags: trunk
17:48
Removed extraneous debugging flags added check-in: 1dc40567db user: rkeene tags: trunk
Changes

Modified appfsd.c from [45ff02ebc8] to [4990aac269].

    13     13   #include <fuse.h>
    14     14   #include <tcl.h>
    15     15   
    16     16   #ifndef APPFS_CACHEDIR
    17     17   #define APPFS_CACHEDIR "/var/cache/appfs"
    18     18   #endif
    19     19   
           20  +#ifdef DEBUG
    20     21   #define APPFS_DEBUG(x...) { fprintf(stderr, "[debug] %s:%i:%s: ", __FILE__, __LINE__, __func__); fprintf(stderr, x); fprintf(stderr, "\n"); }
           22  +#else
           23  +#define APPFS_DEBUG(x...) /**/
           24  +#endif
    21     25   
    22     26   static pthread_key_t interpKey;
    23     27   
    24     28   struct appfs_thread_data {
    25     29   	sqlite3 *db;
    26     30   	const char *cachedir;
    27     31   	time_t boottime;