Re: [PATCH] UefiPayloadPkg: Align Attribute value with UPL spec


Ni, Ray
 

+ upld_info_hdr.Attribute |= 1 if BuildTarget == "DEBUG" else 0

I am not python expert. Above statement might be interpreted as:
1. (upld_info.hdr.Attribute |= 1) if BuildTarget == "DEBUG" else 0
2. upld_info_hdr.Attribute |= (1 if BuildTarget == "DEBUG" else 0)

Are we sure that the #2 is chosen in by the python interpreter?

Join devel@edk2.groups.io to automatically receive all group messages.