MdePkg/DevicePathLib: Reverse the byte order of BD_ADDR for Bluetooth
For the following two functions: DevPathFromTextBluetooth() DevPathToTextBluetooth() The Bluetooth device address "UINT8 Address[6]" is displayed with the order from Address[5] to Address[0]. This commit reverses the order. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
DevicePathToText protocol as defined in the UEFI 2.0 specification.
|
||||
|
||||
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
|
||||
Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2013 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@ -1618,12 +1618,12 @@ DevPathToTextBluetooth (
|
||||
UefiDevicePathLibCatPrint (
|
||||
Str,
|
||||
L"Bluetooth(%02x%02x%02x%02x%02x%02x)",
|
||||
Bluetooth->BD_ADDR.Address[5],
|
||||
Bluetooth->BD_ADDR.Address[4],
|
||||
Bluetooth->BD_ADDR.Address[3],
|
||||
Bluetooth->BD_ADDR.Address[2],
|
||||
Bluetooth->BD_ADDR.Address[0],
|
||||
Bluetooth->BD_ADDR.Address[1],
|
||||
Bluetooth->BD_ADDR.Address[0]
|
||||
Bluetooth->BD_ADDR.Address[2],
|
||||
Bluetooth->BD_ADDR.Address[3],
|
||||
Bluetooth->BD_ADDR.Address[4],
|
||||
Bluetooth->BD_ADDR.Address[5]
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user