On Sep 7, 2012, at 4:24 PM, Doug Azzarito wrote:

> I've been asked to display an error message on screen from my driver.
> I thought I could use gST->StdErr->OutputString, but even though I get
> a 0 return code, I see nothing when my driver loads and detects the
> error condition. Is console output from drivers not allowed?
> 

Drivers should never write to the screen. The platform firmware owns the UI. 

UEFI  2.3.1 2.6.3

17. If a driver follows the driver model of this specification, and the driver 
wants to produce warning or error messages for the user, then the 
EFI_DRIVER_HEALTH_PROTOCOL must be used to produce those messages. The Boot 
Manager may optionally display the messages to the user.

18. If a driver follows the driver model of this specification, and the driver 
needs to perform a repair operation that is not part of the normal 
initialization sequence, and that repair operation requires an extended period 
of time, then the EFI_DRIVER_HEALTH_PROTOCOL must be used to provide the repair 
feature. If the Boot Manager detects a boot device that requires a repair 
operation, then the Boot Manager must use the EFI_DRIVER_HEALTH_PROTOCOL to 
perform the repair operation. The Boot Manager can optionally display progress 
indicators as the repair operation is performed by the driver.

19. If a driver follows the driver model of this specification, and the driver 
requires the user to make software and/or hardware configuration changes before 
the boot devices that the driver manages can be used, then the 
EFI_DRIVER_HEALTH_PROTOCOL must be produced. If the Boot Manager detects a boot 
device that requires software and/or hardware configuration changes to make the 
boot device usable, then the Boot Manager may optionally allow the user to make 
those configuration changes.

> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to