[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] Fix Activev Device Present logging
Log active device presence from DriverIsActiveDevicePresent, rather than the caller when DriverIsActiveDevicePresent reported its present. This move fixes the non-functional conditional in the logging. Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx> --- src/xenfilt/driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenfilt/driver.c b/src/xenfilt/driver.c index 5496a17..e9e6673 100644 --- a/src/xenfilt/driver.c +++ b/src/xenfilt/driver.c @@ -324,6 +324,8 @@ DriverIsActivePresent( done: XENFILT_EMULATED(Release, &Driver.EmulatedInterface); + Info("ACTIVE DEVICE %sPRESENT\n", (!Present) ? "NOT " : ""); + return Present; fail1: @@ -362,8 +364,6 @@ DriverSetFilterState( break; if (DriverIsActivePresent()) { - Info("ACTIVE DEVICE %sPRESENT\n", (!Present) ? "NOT " : ""); - if (!__DriverSafeMode()) UnplugDevices(); } -- 2.28.0.windows.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |