Improve diagnostic message.

This commit is contained in:
imp 2005-11-09 03:37:52 +00:00
parent 2cbc12617e
commit 15d22053de

View File

@ -1740,8 +1740,9 @@ pci_alloc_map(device_t dev, device_t child, int type, int *rid,
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child, type, rid, res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child, type, rid,
start, end, count, flags); start, end, count, flags);
if (res == NULL) { if (res == NULL) {
device_printf(child, "%#lx bytes of rid %#x res %d failed.\n", device_printf(child,
count, *rid, type); "%#lx bytes of rid %#x res %d failed (%#lx, %#lx).\n",
count, *rid, type, start, end);
goto out; goto out;
} }
resource_list_add(rl, type, *rid, start, end, count); resource_list_add(rl, type, *rid, start, end, count);