static const char testStorageChainFormat[] =
+ "chain member: %zu\n"
"store: %s\n"
"backingStoreRaw: %s\n"
"capacity: %lld\n"
expRelDir = isAbs ? data->files[i]->relDirAbs
: data->files[i]->relDirRel;
if (virAsprintf(&expect,
- testStorageChainFormat,
+ testStorageChainFormat, i,
NULLSTR(data->files[i]->expBackingStore),
NULLSTR(data->files[i]->expBackingStoreRaw),
data->files[i]->expCapacity,
data->files[i]->type,
data->files[i]->format) < 0 ||
virAsprintf(&actual,
- testStorageChainFormat,
+ testStorageChainFormat, i,
NULLSTR(elt->backingStore ? elt->backingStore->path : NULL),
NULLSTR(elt->backingStoreRaw),
elt->capacity,
goto cleanup;
}
if (STRNEQ(expect, actual)) {
- fprintf(stderr, "chain member %zu", i);
virtTestDifference(stderr, expect, actual);
VIR_FREE(expect);
VIR_FREE(actual);