/* Converting a given device to an unicode string. */
CHAR16* DevicePathToStr(IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
/* Converting a given device to an unicode string. */
CHAR16* DevicePathToStr(IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
{
  CHAR16  *Text;
  Text = ConvertDevicePathToText (
           DevPath,
           FALSE,
           TRUE
           );
  if (Text == NULL) {
    Text = AllocateCopyPool (sizeof (L"?"), L"?");
    ASSERT (Text != NULL);
  }
  return Text;
}