On Thu, 17 Oct 2019 13:54:23 +0200 David Sterba <dsterba@xxxxxxx> wrote: > > So if there's an interest for very compact printing loop, something like > > this produces the same output: > > > > for (i = 0; i < 8; i++) { > > printf("%02X", buf[i]); > > printf("%02X", buf[i]); > > Ok, test-before-post failure, this should be > > printf("%02X", buf[2 * i]); > printf("%02X", buf[2 * i + 1]); > > > if (1 <= i && i <= 4) > > putchar('-'); > > } I'm fine if you want to post a v3 with this update. -- Steve