aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_blktap2.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-09-08 16:44:24 +0100
committerIan Campbell <ian.campbell@citrix.com>2010-09-08 16:44:24 +0100
commitfc850f5680f41fd09c7a6d6fee872f889be43043 (patch)
tree12ced78d53498a6261efe59ac48dfd551be89127 /tools/libxl/libxl_blktap2.c
parent0953a577a26adc935177c21115296a3637b3e0e4 (diff)
downloadxen-fc850f5680f41fd09c7a6d6fee872f889be43043.tar.gz
xen-fc850f5680f41fd09c7a6d6fee872f889be43043.tar.bz2
xen-fc850f5680f41fd09c7a6d6fee872f889be43043.zip
libxl: Ensure all _hidden functions use libxl__ prefix (autogenerated patch)
This patch covers all those which could be trivially converted automatically. sed -n -e 's/_hidden.*[ \*]libxl_\([^_][^()]*\)(.*/\1/pg' tools/libxl/*.h | \ while read i ; do \ sed -i -e "s/libxl_$i/libxl__$i/g" tools/libxl/*.[ch]; \ done sed -n -e 's/_hidden.*_libxl_\([^_][^()]*\)(.*/\1/pg' tools/libxl/*.h | \ while read i ; do \ sed -i -e "s/_libxl_$i/libxl__$i/g" tools/libxl/*.[ch]; \ done Check that diffstat includes libxl but not xl. Fixup tools/libxl/xl_cmdimpl.c which used libxl_device_del instead of libxl_device_disk_del in a printf. (Patch runes re-run by Ian Jackson to refresh against tip libxl.) Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_blktap2.c')
-rw-r--r--tools/libxl/libxl_blktap2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libxl/libxl_blktap2.c b/tools/libxl/libxl_blktap2.c
index e6a8ed1662..24d13da555 100644
--- a/tools/libxl/libxl_blktap2.c
+++ b/tools/libxl/libxl_blktap2.c
@@ -35,15 +35,15 @@ const char *libxl_blktap_devpath(libxl_gc *gc,
type = device_disk_string_of_phystype(phystype);
minor = tap_ctl_find_minor(type, disk);
if (minor >= 0) {
- devname = libxl_sprintf(gc, "/dev/xen/blktap-2/tapdev%d", minor);
+ devname = libxl__sprintf(gc, "/dev/xen/blktap-2/tapdev%d", minor);
if (devname)
return devname;
}
- params = libxl_sprintf(gc, "%s:%s", type, disk);
+ params = libxl__sprintf(gc, "%s:%s", type, disk);
err = tap_ctl_create(params, &devname);
if (!err) {
- libxl_ptr_add(gc, devname);
+ libxl__ptr_add(gc, devname);
return devname;
}