PostGIS  2.2.7dev-r@@SVN_REVISION@@
static void default_debuglogger ( int  level,
const char *  fmt,
va_list  ap 
)
static

Definition at line 137 of file lwutil.c.

References LW_MSG_MAXLEN.

138 {
139  char msg[LW_MSG_MAXLEN+1];
140  if ( POSTGIS_DEBUG_LEVEL >= level )
141  {
142  /* Space pad the debug output */
143  int i;
144  for ( i = 0; i < level; i++ )
145  msg[i] = ' ';
146  vsnprintf(msg+i, LW_MSG_MAXLEN-i, fmt, ap);
147  msg[LW_MSG_MAXLEN]='\0';
148  printf("%s\n", msg);
149  }
150 }
tuple fmt
Definition: pixval.py:92
#define LW_MSG_MAXLEN
Definition: lwutil.c:30