[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XENBUS PATCH 13/13] Explicitly check HvmGetParam result via BUG_ON
The existing ASSERT only works in debug mode. Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx> --- src/xenbus/store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenbus/store.c b/src/xenbus/store.c index b0f2332..afb1954 100644 --- a/src/xenbus/store.c +++ b/src/xenbus/store.c @@ -2205,7 +2205,7 @@ StoreEnable( NTSTATUS status; status = HvmGetParam(HVM_PARAM_STORE_EVTCHN, &Value); - ASSERT(NT_SUCCESS(status)); + BUG_ON(!NT_SUCCESS(status)); Port = (ULONG)Value; -- 2.50.0.windows.1 Ngoc Tu Dinh | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |