mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
vsprintf.c: use #if CONFIG_IS_ENABLED(EFI_LOADER)
Using CONFIG_IS_ENABLED(EFI_LOADER) allows to simply the #if statements. Suggested-by: Alexander Graf <agraf@suse.de> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
d5a5a5a747
commit
4ddcc4e5d2
1 changed files with 4 additions and 4 deletions
|
@ -294,8 +294,8 @@ static char *string16(char *buf, char *end, u16 *s, int field_width,
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_EFI_LOADER) && \
|
/* Device paths only exist in the EFI context. */
|
||||||
!defined(CONFIG_SPL_BUILD) && !defined(API_BUILD)
|
#if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
|
||||||
static char *device_path_string(char *buf, char *end, void *dp, int field_width,
|
static char *device_path_string(char *buf, char *end, void *dp, int field_width,
|
||||||
int precision, int flags)
|
int precision, int flags)
|
||||||
{
|
{
|
||||||
|
@ -450,8 +450,8 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
switch (*fmt) {
|
switch (*fmt) {
|
||||||
#if defined(CONFIG_EFI_LOADER) && \
|
/* Device paths only exist in the EFI context. */
|
||||||
!defined(CONFIG_SPL_BUILD) && !defined(API_BUILD)
|
#if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
|
||||||
case 'D':
|
case 'D':
|
||||||
return device_path_string(buf, end, ptr, field_width,
|
return device_path_string(buf, end, ptr, field_width,
|
||||||
precision, flags);
|
precision, flags);
|
||||||
|
|
Loading…
Reference in a new issue