diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-10-11 11:01:07 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-11-08 16:36:48 +0800 |
commit | ed9ff2688a6329b0eed8bc14d287e7a644975a6c (patch) | |
tree | 992e6b2b983d82937d237b0905e164f8e168c00e /BaseTools/Source | |
parent | f8708503cf354afcbb989583746f1e331014c059 (diff) | |
download | edk2-platforms-ed9ff2688a6329b0eed8bc14d287e7a644975a6c.tar.xz |
BaseTools/VolInfo: Fix parameter format mismatch in printf functions
Format specification '%ls' for printf expects type 'wchar_t *', cast the
type of the parameter to 'wchar_t *' to keep them matched.
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>
Diffstat (limited to 'BaseTools/Source')
-rw-r--r-- | BaseTools/Source/C/VolInfo/VolInfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/C/VolInfo/VolInfo.c b/BaseTools/Source/C/VolInfo/VolInfo.c index 1ea2f49e0c..5da658298e 100644 --- a/BaseTools/Source/C/VolInfo/VolInfo.c +++ b/BaseTools/Source/C/VolInfo/VolInfo.c @@ -1708,7 +1708,7 @@ Returns: break;
case EFI_SECTION_USER_INTERFACE:
- printf (" String: %ls\n", (CHAR16 *) &((EFI_USER_INTERFACE_SECTION *) Ptr)->FileNameString);
+ printf (" String: %ls\n", (wchar_t *) &((EFI_USER_INTERFACE_SECTION *) Ptr)->FileNameString);
break;
case EFI_SECTION_FIRMWARE_VOLUME_IMAGE:
|