From 3c43fa1318c6c873e20b5a860010c7fca3353389 Mon Sep 17 00:00:00 2001 From: gram Date: Wed, 10 Sep 2025 01:52:46 +0900 Subject: [PATCH] Clean up encoding output to show only hex string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove verbose "Encoded EXI data (X bytes):" message - Terminal output now shows only clean hex string - File redirection maintains binary output functionality - Streamlined user experience for hex data copying 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- enhanced_exi_viewer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/enhanced_exi_viewer.c b/enhanced_exi_viewer.c index 4298054..9431f4d 100644 --- a/enhanced_exi_viewer.c +++ b/enhanced_exi_viewer.c @@ -1036,13 +1036,11 @@ int main(int argc, char *argv[]) { } if (use_hex_output) { - // Terminal output: show hex string - printf("Encoded EXI data (%zu bytes):\n", pos); + // Terminal output: show hex string only for(size_t i = 0; i < pos; i++) { printf("%02X", buffer[i]); - if ((i + 1) % 32 == 0) printf("\n"); } - if (pos % 32 != 0) printf("\n"); + printf("\n"); } else { // Redirected output: write binary data fwrite(buffer, 1, pos, stdout);