Re: [edk2-devel] [PATCH 18/18] FmpDevicePkg: Update code to be more C11 compliant by using __func__

2023-04-09 Thread Xu, Wei6
Reviewed-by: Wei6 Xu Thanks, Wei -Original Message- From: Rebecca Cran Sent: Friday, April 7, 2023 6:23 AM To: devel@edk2.groups.io; Gao, Liming ; Kinney, Michael D ; Jiang, Guomin ; Xu, Wei6 ; Dong, Guo ; Ni, Ray ; Rhodes, Sean ; Lu, James ; Guo, Gua ; Andrew Fish ; Wu, Hao A ;

[edk2-devel] [PATCH 18/18] FmpDevicePkg: Update code to be more C11 compliant by using __func__

2023-04-06 Thread Rebecca Cran
__FUNCTION__ is a pre-standard extension that gcc and Visual C++ among others support, while __func__ was standardized in C99. Since it's more standard, replace __FUNCTION__ with __func__ throughout FmpDevicePkg. Visual Studio versions before VS 2015 don't support __func__ and so will fail to