From 017ceb225dcbf287d09daa9d6663b64414a819e3 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 11 Mar 2024 22:45:20 +0100 Subject: src: piece-table: print piece cache --- src/piece-table.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/piece-table.c b/src/piece-table.c index 2e7f0a2..440bb69 100644 --- a/src/piece-table.c +++ b/src/piece-table.c @@ -25,6 +25,9 @@ void print_piece_table (piece_table *pt) { for ( cur = pt->sentinel->next; cur != pt->sentinel; cur = cur->next ) { printf("\n\t\ttext: "); print_string(cur->start, cur->length); } + printf("\n\t cached_offset: %ld", pt->cached_offset); + printf("\n\t cached (piece-text):"); + print_string(pt->cached->start, pt->cached->length); printf("\n}\n"); } -- cgit v1.2.3