Skip to content

Commit ae1363e

Browse files
author
Jerome Maloberti
committed
CA-80579: Fix debug statement.
Signed-off-by: Jerome Maloberti <[email protected]>
1 parent 77d6bbf commit ae1363e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ocaml/xenops/domain.ml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,11 @@ let shutdown_wait_for_ack (t: Xenops_task.t) ?(timeout=60.) ~xc ~xs domid req =
302302
let di = Xenctrl.domain_getinfo xc domid in
303303
let uuid = get_uuid ~xc domid in
304304
if di.Xenctrl.hvm_guest then begin
305-
if Xenctrl.hvm_check_pvdriver xc domid
306-
then debug "VM = %s; domid = %d; HVM guest with PV drivers: not expecting any acknowledgement" (Uuid.to_string uuid) domid
307-
else Xenctrl.domain_shutdown xc domid (shutdown_to_xc_shutdown req)
305+
if not (Xenctrl.hvm_check_pvdriver xc domid)
306+
then begin
307+
debug "VM = %s; domid = %d; HVM guest without PV drivers: not expecting any acknowledgement" (Uuid.to_string uuid) domid;
308+
Xenctrl.domain_shutdown xc domid (shutdown_to_xc_shutdown req)
309+
end
308310
end else begin
309311
debug "VM = %s; domid = %d; Waiting for PV domain to acknowledge shutdown request" (Uuid.to_string uuid) domid;
310312
let path = control_shutdown ~xs domid in

0 commit comments

Comments
 (0)