Skip to content

Commit

Permalink
Do not enable debugging by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frediano Ziglio committed Feb 6, 2014
1 parent 0d68b6f commit df360de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fillextfs.c
Expand Up @@ -379,6 +379,7 @@ static struct hdlinks_s hdlinks;
static char * app_name;
static const char *const memory_exhausted = "memory exhausted";

#ifdef DEBUG
static void
debugf(int line, const char *fmt, ...)
{
Expand All @@ -390,8 +391,10 @@ debugf(int line, const char *fmt, ...)
putc('\n', stderr);
va_end(p);
}

#define debugf(args...) debugf(__LINE__, args)
#else
#define debugf(args...) do {} while(0)
#endif

// error (un)handling
static void
Expand Down

0 comments on commit df360de

Please sign in to comment.