mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
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>
This commit is contained in:
parent
fa9972662c
commit
467eeb0f80
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue