[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] libxl: Print device_kind as a string
commit 2ffa3b2d68cdb9558336ea3c70d68cc14f831ddf Author: Jason Andryuk <jandryuk@xxxxxxxxx> AuthorDate: Tue Apr 25 15:46:22 2023 -0400 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Wed Apr 26 15:15:30 2023 +0100 libxl: Print device_kind as a string Printing the integer isn't particularly informative. Switch to a human-readable string when printing the device_kind in libxl__get_hotplug_script_info(). Signed-off-by: Jason Andryuk <jandryuk@xxxxxxxxx> Reviewed-by: Juergen Gross <jgross@xxxxxxxx> --- tools/libs/light/libxl_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libs/light/libxl_linux.c b/tools/libs/light/libxl_linux.c index 27f2bce718..f7c92ba562 100644 --- a/tools/libs/light/libxl_linux.c +++ b/tools/libs/light/libxl_linux.c @@ -231,8 +231,8 @@ int libxl__get_hotplug_script_info(libxl__gc *gc, libxl__device *dev, break; default: /* No need to execute any hotplug scripts */ - LOGD(DEBUG, dev->domid, - "backend_kind %d, no need to execute scripts", dev->backend_kind); + LOGD(DEBUG, dev->domid, "backend_kind %s, no need to execute scripts", + libxl__device_kind_to_string(dev->backend_kind)); rc = 0; break; } -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |