mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
vsprintf: Support phys_addr_t specifier unconditionally
When phys_addr_t printf specifier support was first introduced in commit
1eebd14b79
("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>
This commit is contained in:
parent
9bfacf249b
commit
1701892790
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,6 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
|||
return device_path_string(buf, end, ptr, field_width,
|
||||
precision, flags);
|
||||
#endif
|
||||
#ifdef CONFIG_CMD_NET
|
||||
case 'a':
|
||||
flags |= SPECIAL | ZEROPAD;
|
||||
|
||||
|
@ -469,6 +468,7 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
|||
break;
|
||||
}
|
||||
break;
|
||||
#ifdef CONFIG_CMD_NET
|
||||
case 'm':
|
||||
flags |= SPECIAL;
|
||||
/* Fallthrough */
|
||||
|
|
Loading…
Add table
Reference in a new issue