summaryrefslogtreecommitdiffstats
path: root/subprojects/libvhost-user/libvhost-user.c
diff options
context:
space:
mode:
authorAlex Bennée2022-03-21 16:30:32 +0100
committerMichael S. Tsirkin2022-05-16 10:38:40 +0200
commit467eeb0f80798457ba83040f7adb1e6b29c7c6a9 (patch)
tree6601c497fc7315fef539554378da150980049467 /subprojects/libvhost-user/libvhost-user.c
parentvhost-user.rst: add clarifying language about protocol negotiation (diff)
downloadqemu-467eeb0f80798457ba83040f7adb1e6b29c7c6a9.tar.gz
qemu-467eeb0f80798457ba83040f7adb1e6b29c7c6a9.tar.xz
qemu-467eeb0f80798457ba83040f7adb1e6b29c7c6a9.zip
libvhost-user: expose vu_request_to_string
This is useful for more human readable debug messages in vhost-user programs. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220321153037.3622127-9-alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'subprojects/libvhost-user/libvhost-user.c')
-rw-r--r--subprojects/libvhost-user/libvhost-user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subprojects/libvhost-user/libvhost-user.c b/subprojects/libvhost-user/libvhost-user.c
index d0041c864b..b4cc3c2d68 100644
--- a/subprojects/libvhost-user/libvhost-user.c
+++ b/subprojects/libvhost-user/libvhost-user.c
@@ -99,7 +99,7 @@ static inline bool vu_has_protocol_feature(VuDev *dev, unsigned int fbit)
return has_feature(dev->protocol_features, fbit);
}
-static const char *
+const char *
vu_request_to_string(unsigned int req)
{
#define REQ(req) [req] = #req