Clean up encoding output to show only hex string
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user