Skip to content

Commit

Permalink
Minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
landley committed Feb 18, 2025
1 parent 0abe8e1 commit f415909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toys/pending/hexdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ config HEXDUMP
config HD
bool "hd"
default HEXDUMP
default n
help
usage: hd [FILE...]
Expand Down Expand Up @@ -151,5 +151,5 @@ void hexdump_main(void)
else TT.fmt = " %04x";

loopfiles(toys.optargs, do_hexdump);
FLAG(C) ? printf("%08llx\n", TT.pos) : printf("%07llx\n", TT.pos);
printf("%0*llx\n", 7+FLAG(C), TT.pos);
}

0 comments on commit f415909

Please sign in to comment.