]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/VolInfo: Fix printf issue using '%ls' in format string
authorHao Wu <hao.a.wu@intel.com>
Mon, 28 Nov 2016 07:18:20 +0000 (15:18 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 5 Dec 2016 01:48:28 +0000 (09:48 +0800)
commit3883e2cb52fa1582165d6558c67649835d0eada3
tree7458ab3ad514d018782d5e2e09389a92f1397e1e
parent0db4acb61ac4e79a8a95b0e82874e8b6bed8e4bb
BaseTools/VolInfo: Fix printf issue using '%ls' in format string

https://bugzilla.tianocore.org/show_bug.cgi?id=257

For GCC compilers, when building with option '-fshort-wchar', wide char
string format '%ls' does not work properly for printf() function. The
string specified by '%ls' will not be printed.

This commit avoids using '%ls' for printf() function and converts the wide
char string to char string for printing.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/VolInfo/VolInfo.c