win-pvdrivers

changeset 1102:d5d8c518a090

NT_ASSERT macro appears to have a limit on expressions size. Remove offending ASSERT
author James Harper <james.harper@bendigoit.com.au>
date Thu Sep 25 20:33:16 2014 +1000 (2014-09-25)
parents 99ce7ae22363
children 632727e57ffb
files xenvbd_storport/xenvbd.c
line diff
     1.1 --- a/xenvbd_storport/xenvbd.c	Thu Sep 25 20:32:51 2014 +1000
     1.2 +++ b/xenvbd_storport/xenvbd.c	Thu Sep 25 20:33:16 2014 +1000
     1.3 @@ -383,7 +383,7 @@ XenVbd_HwStorAdapterControl(PVOID Device
     1.4        break;
     1.5      }
     1.6      XN_ASSERT(IsListEmpty(&xvdd->srb_list));
     1.7 -    XN_ASSERT(xvdd->shadow_free == SHADOW_ENTRIES);
     1.8 +    // XN_ASSERT(xvdd->shadow_free == SHADOW_ENTRIES); /* this assert failes to compile because it expands to a too long string */
     1.9      if (xvdd->power_action != StorPowerActionHibernate) {
    1.10        /* if hibernate then device_state will be set on our behalf in the hibernate FindAdapter */
    1.11        xvdd->device_state = DEVICE_STATE_DISCONNECTED;