tiny-printf: Reorder code to support %p
authorSimon Glass <sjg@chromium.org>
Mon, 21 Oct 2019 23:26:45 +0000 (17:26 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 27 Oct 2019 16:56:51 +0000 (10:56 -0600)
commit831c1611195961bf79ac55a8deaac9034112ef5f
tree2ca660cdba5ebd262c51bda3a3dc74566768df5d
parentdee74e6cc4a94da19b99309ad1c99eb5bddfe217
tiny-printf: Reorder code to support %p

With a bit of code reordering we can support %p using the existing code
for ulong.

Move the %p code up and adjust the logic accordingly.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/tiny-printf.c