From: Michael Tremer Date: Mon, 18 May 2020 13:45:52 +0000 (+0000) Subject: hexdump: Show how much data we are dumping X-Git-Tag: 0.9.1~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=356cabc13deca92eb41ce05e18ca6a352a47db39;p=location%2Flibloc.git hexdump: Show how much data we are dumping Signed-off-by: Michael Tremer --- diff --git a/src/loc/private.h b/src/loc/private.h index 6d85795..6b98d1c 100644 --- a/src/loc/private.h +++ b/src/loc/private.h @@ -85,6 +85,8 @@ static inline void hexdump(struct loc_ctx* ctx, const void* addr, size_t len) { unsigned int i = 0; unsigned char* p = (unsigned char*)addr; + DEBUG(ctx, "Dumping %zu byte(s)\n", len); + // Process every byte in the data for (i = 0; i < len; i++) { // Multiple of 16 means new line (with line offset)