summary refs log tree commit diff
path: root/bin/xx.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-04-16 22:37:02 -0400
committerJune McEnroe <june@causal.agency>2018-04-16 22:37:19 -0400
commitdcfce59492fb3003a61e161c2bbc32e2072c2ee4 (patch)
treeb0b96227a7a45821b53eac8edcdaf161d169690c /bin/xx.c
parentAdd 0 bind to brot (diff)
downloadsrc-dcfce59492fb3003a61e161c2bbc32e2072c2ee4.tar.gz
src-dcfce59492fb3003a61e161c2bbc32e2072c2ee4.zip
Always hexadecimal in uppercase
I still haven't been able to actually test scheme's Linux console
output...
Diffstat (limited to 'bin/xx.c')
-rw-r--r--bin/xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/xx.c b/bin/xx.c
index 688db8bc..9b2d3ca3 100644
--- a/bin/xx.c
+++ b/bin/xx.c
@@ -59,7 +59,7 @@ static void dump(FILE *file) {
         }
 
         if (options.offset) {
-            printf("%08zx:  ", offset);
+            printf("%08zX:  ", offset);
         }
 
         for (size_t i = 0; i < sizeof(buf); ++i) {
@@ -69,7 +69,7 @@ static void dump(FILE *file) {
                 }
             }
             if (i < size) {
-                printf("%02hhx ", buf[i]);
+                printf("%02hhX ", buf[i]);
             } else {
                 printf("   ");
             }