Formatting
This commit is contained in:
parent
4e1254fde1
commit
9c746a10cf
1 changed files with 3 additions and 1 deletions
|
@ -24,10 +24,12 @@ rb_init(struct RingBuf *rb, rb_size_t capacity, ALLOC_T malloc_fn,
|
|||
rb->write_head = rb->buffer;
|
||||
rb->read_head = rb->buffer;
|
||||
|
||||
// Read from buffer at max position to force a segfault if theres an issue
|
||||
DEBUG_PRINT("Reading from buffer at position %d\n",
|
||||
rb->capacity * rb->struct_size);
|
||||
|
||||
// Read from buffer at max position to force a segfault if theres an issue
|
||||
void *top = rb->buffer + (rb->capacity * rb->struct_size);
|
||||
|
||||
DEBUG_PRINT("Buffer top successfully read at virtual address: %p\n", &top);
|
||||
|
||||
DEBUG_PRINT(
|
||||
|
|
Loading…
Reference in a new issue