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
commit0ec89d0df5385cf40b204dff84ea47ded7985236 (patch)
treeaf718e3bbd7588cc060fe5669f2a650b3a93660b /bin/xx.c
parentAdd 0 bind to brot (diff)
downloadsrc-0ec89d0df5385cf40b204dff84ea47ded7985236.tar.gz
src-0ec89d0df5385cf40b204dff84ea47ded7985236.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 e610c276..82e00b43 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("   ");
             }