Skip to content

Commit b1f6002

Browse files
committed
missed a couple of debugs
1 parent 7ce51db commit b1f6002

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sshbuf.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,21 +419,21 @@ sshbuf_allocate(struct sshbuf *buf, size_t len)
419419
* -cjr 04/06/23
420420
*/
421421
if (rlen > BUF_WATERSHED) {
422-
debug_f ("Prior: label: %s, %p, rlen is %zu need is %zu win_max is %zu max_size is %zu",
423-
buf->label, buf, rlen, need, buf->window_max, buf->max_size);
422+
/* debug_f ("Prior: label: %s, %p, rlen is %zu need is %zu win_max is %zu max_size is %zu",
423+
buf->label, buf, rlen, need, buf->window_max, buf->max_size); */
424424
/* easiest thing to do is grow the nuffer by 4MB each time. It might end
425425
* up being somewhat overallocated but works quickly */
426426
need = (4*1024*1024);
427427
rlen = ROUNDUP(buf->alloc + need, SSHBUF_SIZE_INC);
428-
debug_f ("Post: label: %s, %p, rlen is %zu need is %zu win_max is %zu max_size is %zu",
429-
buf->label, buf, rlen, need, buf->window_max, buf->max_size);
428+
/* debug_f ("Post: label: %s, %p, rlen is %zu need is %zu win_max is %zu max_size is %zu",
429+
buf->label, buf, rlen, need, buf->window_max, buf->max_size);*/
430430
}
431431
SSHBUF_DBG(("need %zu initial rlen %zu", need, rlen));
432432

433433
/* rlen might be above the max allocation */
434434
if (rlen > buf->max_size) {
435435
rlen = buf->max_size;
436-
debug_f("set rlen to %zu", buf->max_size);
436+
/* debug_f("set rlen to %zu", buf->max_size);*/
437437
}
438438
SSHBUF_DBG(("adjusted rlen %zu", rlen));
439439
if ((dp = recallocarray(buf->d, buf->alloc, rlen, 1)) == NULL) {

0 commit comments

Comments
 (0)