662
702
int written= vsnprintf(ptr, DRIZZLE_MAX_ERROR_SIZE - size, format, args);
667
714
if (size >= DRIZZLE_MAX_ERROR_SIZE)
668
716
size= DRIZZLE_MAX_ERROR_SIZE - 1;
671
720
if (drizzle->log_fn == NULL)
672
722
memcpy(drizzle->last_error, log_buffer, size + 1);
674
726
drizzle->log_fn(log_buffer, DRIZZLE_VERBOSE_ERROR, drizzle->log_context);
677
730
void drizzle_log(drizzle_st *drizzle, drizzle_verbose_t verbose,