]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
hexdump: Show how much data we are dumping
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 May 2020 13:45:52 +0000 (13:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 May 2020 13:45:52 +0000 (13:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/loc/private.h

index 6d857952e1d59880d78d711dfbb4fd6386be1611..6b98d1c4d2f53c39868ecfcdcca89849dc863277 100644 (file)
@@ -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)