@@ -607,6 +607,8 @@ AddOutput (
607
607
EFI_DEVICE_PATH_PROTOCOL * DevicePath ;
608
608
609
609
DevicePath = DevicePathFromHandle (Handle );
610
+ DEBUG ((DEBUG_INFO , "%a: %s: handle %p: device path found\n" ,
611
+ __FUNCTION__ , ReportText , Handle ));
610
612
if (DevicePath == NULL ) {
611
613
DEBUG ((EFI_D_ERROR , "%a: %s: handle %p: device path not found\n" ,
612
614
__FUNCTION__ , ReportText , Handle ));
@@ -615,7 +617,7 @@ AddOutput (
615
617
616
618
Status = EfiBootManagerUpdateConsoleVariable (ConOut , DevicePath , NULL );
617
619
if (EFI_ERROR (Status )) {
618
- DEBUG ((EFI_D_ERROR , "%a: %s: adding to ConOut: %r\n" , __FUNCTION__ ,
620
+ DEBUG ((DEBUG_INFO , "%a: %s: adding to ConOut: %r\n" , __FUNCTION__ ,
619
621
ReportText , Status ));
620
622
return ;
621
623
}
@@ -1619,6 +1621,50 @@ PlatformBootManagerAfterConsole (
1619
1621
gBS -> Stall (200 * 1000 );
1620
1622
EfiBootManagerConnectAll ();
1621
1623
1624
+ // ------
1625
+
1626
+ EFI_DEVICE_PATH_PROTOCOL * dp ;
1627
+ UINTN Size ;
1628
+ EFI_STATUS dumpStatus ;
1629
+
1630
+ // Dump ConOut
1631
+ Size = 0 ;
1632
+ Status = gRT -> GetVariable (
1633
+ L"ConOut" , & gEfiGlobalVariableGuid ,
1634
+ NULL , & Size , NULL );
1635
+ if (Status == EFI_BUFFER_TOO_SMALL ) {
1636
+ dp = AllocatePool (Size );
1637
+ if (dp ) {
1638
+ Status = gRT -> GetVariable (
1639
+ L"ConOut" , & gEfiGlobalVariableGuid ,
1640
+ NULL , & Size , dp );
1641
+ if (!EFI_ERROR (dumpStatus )) {
1642
+ DEBUG ((DEBUG_INFO , "[ConOut] %s\n" , ConvertDevicePathToText (dp , TRUE, TRUE)));
1643
+ }
1644
+ FreePool (dp );
1645
+ }
1646
+ }
1647
+
1648
+ // Repeat the same for ConIn
1649
+ Size = 0 ;
1650
+ Status = gRT -> GetVariable (
1651
+ L"ConIn" , & gEfiGlobalVariableGuid ,
1652
+ NULL , & Size , NULL );
1653
+ if (Status == EFI_BUFFER_TOO_SMALL ) {
1654
+ dp = AllocatePool (Size );
1655
+ if (dp ) {
1656
+ Status = gRT -> GetVariable (
1657
+ L"ConIn" , & gEfiGlobalVariableGuid ,
1658
+ NULL , & Size , dp );
1659
+ if (!EFI_ERROR (dumpStatus )) {
1660
+ DEBUG ((DEBUG_INFO , "[ConIn] %s\n" , ConvertDevicePathToText (dp , TRUE, TRUE)));
1661
+ }
1662
+ FreePool (dp );
1663
+ }
1664
+ }
1665
+
1666
+ // ------
1667
+
1622
1668
EfiBootManagerRefreshAllBootOption ();
1623
1669
1624
1670
//
0 commit comments