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@gmail.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
Jason Andryuk authored and Andrew Cooper committed 2023-04-26 15:15:30 +01:00
1 parent ed70714236
commit 2ffa3b2d68
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.