aboutsummaryrefslogtreecommitdiff
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 /src/security
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 'src/security')
-rw-r--r--src/security/virt-aa-helper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index 08ff53c30..a4e8549d4 100644
--- a/src/security/virt-aa-helper.c
+++ b/src/security/virt-aa-helper.c
@@ -827,10 +827,10 @@ vah_add_file(virBufferPtr buf, const char *path, const char *perms)
goto clean;
}
- virBufferVSprintf(buf, " \"%s\" %s,\n", tmp, perms);
+ virBufferAsprintf(buf, " \"%s\" %s,\n", tmp, perms);
if (readonly) {
- virBufferVSprintf(buf, " # don't audit writes to readonly files\n");
- virBufferVSprintf(buf, " deny \"%s\" w,\n", tmp);
+ virBufferAsprintf(buf, " # don't audit writes to readonly files\n");
+ virBufferAsprintf(buf, " deny \"%s\" w,\n", tmp);
}
clean:
@@ -1197,11 +1197,11 @@ main(int argc, char **argv)
if (vah_add_file(&buf, ctl->newfile, "rw") != 0)
goto clean;
} else {
- virBufferVSprintf(&buf, " \"%s/log/libvirt/**/%s.log\" w,\n",
+ virBufferAsprintf(&buf, " \"%s/log/libvirt/**/%s.log\" w,\n",
LOCALSTATEDIR, ctl->def->name);
- virBufferVSprintf(&buf, " \"%s/lib/libvirt/**/%s.monitor\" rw,\n",
+ virBufferAsprintf(&buf, " \"%s/lib/libvirt/**/%s.monitor\" rw,\n",
LOCALSTATEDIR, ctl->def->name);
- virBufferVSprintf(&buf, " \"%s/run/libvirt/**/%s.pid\" rwk,\n",
+ virBufferAsprintf(&buf, " \"%s/run/libvirt/**/%s.pid\" rwk,\n",
LOCALSTATEDIR, ctl->def->name);
if (ctl->files)
virBufferAdd(&buf, ctl->files, -1);