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) {
|
if (use_hex_output) {
|
||||||
// Terminal output: show hex string
|
// Terminal output: show hex string only
|
||||||
printf("Encoded EXI data (%zu bytes):\n", pos);
|
|
||||||
for(size_t i = 0; i < pos; i++) {
|
for(size_t i = 0; i < pos; i++) {
|
||||||
printf("%02X", buffer[i]);
|
printf("%02X", buffer[i]);
|
||||||
if ((i + 1) % 32 == 0) printf("\n");
|
|
||||||
}
|
}
|
||||||
if (pos % 32 != 0) printf("\n");
|
printf("\n");
|
||||||
} else {
|
} else {
|
||||||
// Redirected output: write binary data
|
// Redirected output: write binary data
|
||||||
fwrite(buffer, 1, pos, stdout);
|
fwrite(buffer, 1, pos, stdout);
|
||||||
|
|||||||
Reference in New Issue
Block a user