When a floppy drive is attached, the device id string cannot be parsed
into a valid xvd, sd? or hd? format. Report the error instead of asserting
and return the invalid value to ignore the device in question.
Signed-off-by: Owen Smith <owen.smith@citrix.com>
case 89: return ((DeviceId & 0xC0) >> 6) + 14; /* hdo..p */
default: break;
}
- ASSERT3U(DeviceId, ==, ~0);
}
+ Error("Invalid DeviceId %s (%08x)\n", DeviceIdStr, DeviceId);
return 0xFFFFFFFF; // OBVIOUS ERROR VALUE
}
static FORCEINLINE XENVBD_DEVICE_TYPE