]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
display_options:print_buffer: align ASCII print
authorAndreas Bießmann <andreas.devel@googlemail.com>
Thu, 7 Feb 2013 04:58:19 +0000 (04:58 +0000)
committerTom Rini <trini@ti.com>
Mon, 11 Mar 2013 21:00:28 +0000 (17:00 -0400)
commitefd7c11404e59874d4da86d04cab4acacf77d793
treed62969bc304fa19f68d77371c56b878584b2413b
parenta2681707b2478abef34b8c403e7ab52daae9c331
display_options:print_buffer: align ASCII print

This patch adds whitespace to the printed hex numbers to have an aligned ASCII
printout at the end of the line.

This changes for example the md output from:

---8<---
OMAP3 Tricorder # md.l $loadaddr 5
8200000030200109 20a4028c 90010000 08a00000    .. 0... ........
8200001001010000    ....
--->8---

to

---8<---
OMAP3 Tricorder # md.l $loadaddr 5
8200000030200109 20a4028c 90010000 08a00000    .. 0... ........
8200001001010000                               ....
--->8---

The cost of this is about 72 byte .text increase (tested with at91 build).

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
lib/display_options.c