Esempio n. 1
0
void
sharddir_err(VRT_CTX, enum VSL_tag_e tag,  const char *fmt, ...)
{
	va_list ap;

	va_start(ap, fmt);
	if (ctx->vsl)
		VSLbv(ctx->vsl, tag, fmt, ap);
	else
		VSLv(tag, 0, fmt, ap);
	va_end(ap);
}
Esempio n. 2
0
enum vfp_status
VFP_Error(struct busyobj *bo, const char *fmt, ...)
{
	va_list ap;

	CHECK_OBJ_NOTNULL(bo, BUSYOBJ_MAGIC);
	assert(bo->state >= BOS_REQ_DONE);
	if (!bo->failed) {
		va_start(ap, fmt);
		VSLbv(bo->vsl, SLT_FetchError, fmt, ap);
		va_end(ap);
		bo->failed = 1;
	}
	return (VFP_ERROR);
}