Remove redundant debug code/printing
This commit is contained in:
parent
de2465de83
commit
06b949bed4
1 changed files with 0 additions and 14 deletions
14
ringbuf.c
14
ringbuf.c
|
@ -23,20 +23,6 @@ rb_init(struct RingBuf *rb, rb_size_t capacity, ALLOC_T malloc_fn,
|
||||||
rb->count = 0;
|
rb->count = 0;
|
||||||
rb->write_head = rb->buffer;
|
rb->write_head = rb->buffer;
|
||||||
rb->read_head = rb->buffer;
|
rb->read_head = rb->buffer;
|
||||||
|
|
||||||
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(
|
|
||||||
"Initialized ring buffer. Capacit: %d, struct_size: %d, total: %d\n",
|
|
||||||
rb->capacity, rb->struct_size, rb->capacity * rb->struct_size);
|
|
||||||
|
|
||||||
DEBUG_PRINT("Size of RB: %lu\n", sizeof(struct RingBuf));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue