/** * im_verror: * @domain: the source of the error * @fmt: printf()-style format string for the error * @ap: arguments to the format string * * Append a message to the error buffer. * * See also: im_error(). */ void im_verror( const char *domain, const char *fmt, va_list ap ) { g_mutex_lock( im__global_lock ); vips_buf_appendf( &im_error_buf, "%s: ", domain ); vips_buf_vappendf( &im_error_buf, fmt, ap ); vips_buf_appends( &im_error_buf, "\n" ); g_mutex_unlock( im__global_lock ); }
/** * vips_verror: * @domain: the source of the error * @fmt: printf()-style format string for the error * @ap: arguments to the format string * * Append a message to the error buffer. * * See also: vips_error(). */ void vips_verror( const char *domain, const char *fmt, va_list ap ) { g_mutex_lock( vips__global_lock ); vips_buf_appendf( &vips_error_buf, "%s: ", domain ); vips_buf_vappendf( &vips_error_buf, fmt, ap ); vips_buf_appends( &vips_error_buf, "\n" ); g_mutex_unlock( vips__global_lock ); VIPS_DEBUG_MSG( "vips_verror: %s\n", fmt ); }