mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
xen: Rename xen_be_printf to xen_pv_printf
Prepare xen_be_printf to be used by both backend and frontends: * xen_be_printf -> xen_pv_printf Signed-off-by: Emil Condrea <emilcondrea@gmail.com> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Quan Xu <xuquan8@huawei.com> Acked-by: Anthony PERARD <anthony.perard@citrix.com>
This commit is contained in:
parent
ecf7981891
commit
96c77dba6f
10 changed files with 117 additions and 117 deletions
|
@ -68,13 +68,13 @@ int xenstore_mkdir(char *path, int p)
|
|||
};
|
||||
|
||||
if (!xs_mkdir(xenstore, 0, path)) {
|
||||
xen_be_printf(NULL, 0, "xs_mkdir %s: failed\n", path);
|
||||
xen_pv_printf(NULL, 0, "xs_mkdir %s: failed\n", path);
|
||||
return -1;
|
||||
}
|
||||
xenstore_cleanup_dir(g_strdup(path));
|
||||
|
||||
if (!xs_set_permissions(xenstore, 0, path, perms, 2)) {
|
||||
xen_be_printf(NULL, 0, "xs_set_permissions %s: failed\n", path);
|
||||
xen_pv_printf(NULL, 0, "xs_set_permissions %s: failed\n", path);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
@ -194,7 +194,7 @@ const char *xenbus_strstate(enum xenbus_state state)
|
|||
* 2 == noisy debug messages (logfile only).
|
||||
* 3 == will flood your log (logfile only).
|
||||
*/
|
||||
void xen_be_printf(struct XenDevice *xendev, int msg_level,
|
||||
void xen_pv_printf(struct XenDevice *xendev, int msg_level,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
@ -234,7 +234,7 @@ void xen_be_evtchn_event(void *opaque)
|
|||
|
||||
port = xenevtchn_pending(xendev->evtchndev);
|
||||
if (port != xendev->local_port) {
|
||||
xen_be_printf(xendev, 0,
|
||||
xen_pv_printf(xendev, 0,
|
||||
"xenevtchn_pending returned %d (expected %d)\n",
|
||||
port, xendev->local_port);
|
||||
return;
|
||||
|
@ -253,7 +253,7 @@ void xen_be_unbind_evtchn(struct XenDevice *xendev)
|
|||
}
|
||||
qemu_set_fd_handler(xenevtchn_fd(xendev->evtchndev), NULL, NULL, NULL);
|
||||
xenevtchn_unbind(xendev->evtchndev, xendev->local_port);
|
||||
xen_be_printf(xendev, 2, "unbind evtchn port %d\n", xendev->local_port);
|
||||
xen_pv_printf(xendev, 2, "unbind evtchn port %d\n", xendev->local_port);
|
||||
xendev->local_port = -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue