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

Definition at line 165 of file lwutil.c.

References LW_MSG_MAXLEN.

166 {
167  char msg[LW_MSG_MAXLEN+1];
168  if ( POSTGIS_DEBUG_LEVEL >= level )
169  {
170  /* Space pad the debug output */
171  int i;
172  for ( i = 0; i < level; i++ )
173  msg[i] = ' ';
174  vsnprintf(msg+i, LW_MSG_MAXLEN-i, fmt, ap);
175  msg[LW_MSG_MAXLEN]='\0';
176  printf("%s\n", msg);
177  }
178 }
tuple fmt
Definition: pixval.py:92
#define LW_MSG_MAXLEN
Definition: lwutil.c:58