summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-04-30 10:34:49 -0600
committerEric Blake <eblake@redhat.com>2011-05-05 13:47:40 -0600
commit68ea80cfdd41bc3adbe70ac5d0a9c396c81690a3 (patch)
treeee1b6b553cc2a70a92d378607747b1ac24474f1e /tests/cputest.c
parentdocs: <filesystem> attr is 'accessmode', not 'mode' (diff)
downloadlibvirt-68ea80cfdd41bc3adbe70ac5d0a9c396c81690a3.tar.gz
libvirt-68ea80cfdd41bc3adbe70ac5d0a9c396c81690a3.tar.bz2
libvirt-68ea80cfdd41bc3adbe70ac5d0a9c396c81690a3.zip
maint: rename virBufferVSprintf to virBufferAsprintf
We already have virAsprintf, so picking a similar name helps for seeing a similar purpose. Furthermore, the prefix V before printf generally implies 'va_list', even though this variant was '...', and the old name got in the way of adding a new va_list version. global rename performed with: $ git grep -l virBufferVSprintf \ | xargs -L1 sed -i 's/virBufferVSprintf/virBufferAsprintf/g' then revert the changes in ChangeLog-old.
Diffstat (limited to 'tests/cputest.c')
-rw-r--r--tests/cputest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cputest.c b/tests/cputest.c
index b132cebc9..4dcf1aa41 100644
--- a/tests/cputest.c
+++ b/tests/cputest.c
@@ -299,11 +299,11 @@ cpuTestGuestData(const void *arg)
goto cleanup;
}
- virBufferVSprintf(&buf, "%s+%s", data->host, data->name);
+ virBufferAsprintf(&buf, "%s+%s", data->host, data->name);
if (data->nmodels)
- virBufferVSprintf(&buf, ",%s", data->modelsName);
+ virBufferAsprintf(&buf, ",%s", data->modelsName);
if (data->preferred)
- virBufferVSprintf(&buf, ",%s", data->preferred);
+ virBufferAsprintf(&buf, ",%s", data->preferred);
virBufferAddLit(&buf, "-result");
if (virBufferError(&buf)) {