]> git.dujemihanovic.xyz Git - u-boot.git/commit
vsprintf: Support phys_addr_t specifier unconditionally
authorThierry Reding <treding@nvidia.com>
Tue, 12 Mar 2019 10:38:00 +0000 (11:38 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 12 Apr 2019 02:10:05 +0000 (20:10 -0600)
commit1701892790780231fdf35255a772848feca361a8
tree1775b93196f14b6ec53aef5a2bc74e0653c68fd1
parent9bfacf249b100d72b2633ac3a43f2c3888e0a41f
vsprintf: Support phys_addr_t specifier unconditionally

When phys_addr_t printf specifier support was first introduced in commit
1eebd14b7902 ("vsprintf: Add modifier for phys_addr_t"), it was enabled
only if CONFIG_CMD_NET was selected. Since physical addresses are not
unique to networking support it doesn't make sense to conditionally add
it in those cases only. Move support for it outside of the CMD_NET guard
so that the specifier is always supported.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/vsprintf.c