#977478 <efi/efidevp.h>: broken definition DP_IS_END_TYPE

Package:
gnu-efi
Source:
gnu-efi
Description:
Library for developing EFI applications
Submitter:
Simon Richter
Date:
2026-01-07 23:21:02 UTC
Severity:
minor
Tags:
#977478#5
Date:
2020-12-15 14:44:30 UTC
From:
To:
Hi,

in line 71, there is the macro definition

    #define DP_IS_END_TYPE(a)

Obviously, the empty string is not a valid expression to test whether the
lower seven bits of a are set, this should probably read

    #define DP_IS_END_TYPE(a) (DevicePathType(a) == END_DEVICE_PATH_TYPE)

   Simon

#977478#10
Date:
2026-01-07 23:20:13 UTC
From:
To:
Reported upstream. The symbol is not used as far as I can see, so it
does not really matter.