Changeset da88eb82 in mainline for uspace/drv/uhci-hcd/utils/slab.c
- Timestamp:
- 2011-03-25T17:06:07Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 095b2017
- Parents:
- 1585c7e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/utils/slab.c
r1585c7e rda88eb82 94 94 memset(instance->page, 0xa, SLAB_SIZE); 95 95 fibril_mutex_unlock(&init_mutex); 96 usb_log_ fatal("SLAB initialized at %p.\n", instance->page);96 usb_log_debug2("SLAB initialized at %p.\n", instance->page); 97 97 } 98 98 /*----------------------------------------------------------------------------*/ … … 114 114 fibril_mutex_unlock(&instance->guard); 115 115 116 usb_log_fatal("SLAB allocated address element %zu(%p).\n", i, addr);117 116 return addr; 118 117 } … … 122 121 bool in_range = (instance->page != NULL) && 123 122 (addr >= instance->page) && (addr < instance->page + SLAB_SIZE); 124 // usb_log_fatal("SLAB address %sin range %p(%p-%p).\n",125 // in_range ? "" : "NOT ", addr, instance->page, instance->page + SLAB_SIZE);126 123 return in_range; 127 124 } … … 139 136 instance->slabs[pos] = true; 140 137 fibril_mutex_unlock(&instance->guard); 141 142 usb_log_fatal("SLAB freed element %zu(%p).\n", pos, addr);143 138 } 144 139 /**
Note:
See TracChangeset
for help on using the changeset viewer.