Date: Tue, 21 Jun 2011 14:08:29 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 195096 for review Message-ID: <201106211408.p5LE8TYD011905@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@195096?ac=10 Change 195096 by jhb@jhb_jhbbsd on 2011/06/21 14:07:54 Be lenient if the length is wrong, but warn about it. Affected files ... .. //depot/projects/pci/sys/dev/acpica/acpi_pcib_acpi.c#21 edit Differences ... ==== //depot/projects/pci/sys/dev/acpica/acpi_pcib_acpi.c#21 (text+ko) ==== @@ -211,7 +211,10 @@ res->Data.Address.MinAddressFixed != ACPI_ADDRESS_FIXED || res->Data.Address.MaxAddressFixed != ACPI_ADDRESS_FIXED) break; - KASSERT(min + length - 1 == max, ("invalid range")); + if (min + length - 1 == max) + device_printf(sc->ap_dev, + "Length mismatch for %d range: %jx vs %jx\n", + (uintmax_t)max - min + 1, (uintmax_t)length); flags = 0; switch (res->Data.Address.ResourceType) { case ACPI_MEMORY_RANGE:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106211408.p5LE8TYD011905>