PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ default_debuglogger()

static void default_debuglogger ( int  level,
const char *  fmt,
va_list  ap 
)
static

Definition at line 126 of file lwutil.c.

References LW_MSG_MAXLEN.

127 {
128  char msg[LW_MSG_MAXLEN+1];
129  if ( POSTGIS_DEBUG_LEVEL >= level )
130  {
131  /* Space pad the debug output */
132  int i;
133  for ( i = 0; i < level; i++ )
134  msg[i] = ' ';
135  vsnprintf(msg+i, LW_MSG_MAXLEN-i, fmt, ap);
136  msg[LW_MSG_MAXLEN]='\0';
137  fprintf(stderr, "%s\n", msg);
138  }
139 }
def fmt
Definition: pixval.py:92
#define LW_MSG_MAXLEN
Definition: lwutil.c:58