]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/DevicePathFromText: Fix byte orders of iSCSI.Lun
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 2 Mar 2018 11:50:30 +0000 (19:50 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Sat, 3 Mar 2018 07:12:50 +0000 (15:12 +0800)
commitd0196be1e39c419223738d7181d4a5d8972792d0
tree84d012e39fb0d1f307ddf5ce211206961599616e
parente6c80aea71c7b7c6c22ed779d23bf7877a97e68d
MdePkg/DevicePathFromText: Fix byte orders of iSCSI.Lun

Per UEFI spec, iSCSI.Lun is a 8-byte array with byte #0 in the left.
It means "0102030405060708" should be converted to:
    UINT8[8] = {01, 02, 03, 04, 05, 06, 07, 08}
or  UINT64 = {0807060504030201}

Today's implementation wrongly uses the reversed order.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jie Lin <jie.lin@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c