ERR [ErrorLevel]
ERR -dump [Handle]
ERR Handle ErrorLevel
ErrorLevel - New error level bit mask
-dump - Display debug mask of all handles or specified handle
Handle - Device handle
Note:
1. Saving to NVRAM will cause the error level to be saved and used on all
future reboots. The EFI Core will use the new error level as system
reboots. All core EFI routines will then output using the new error
level.
2. Error console must be set to a device path (i.e. com port or console).
3. Not all EFI implementations include an error console or support debug
output. Consult the BIOS release notes for this support.
4. In debug version, the message whose error level is higher than the
specified level will be displayed.
5. To add your own errors/error level see debug macro in sample
implementation source in efidebug.h.
Examples:
* To display the current error message output level:
Shell> err
EFI ERROR 80000000
00000001 EFI_D_INIT
00000002 EFI_D_WARN
00000004 EFI_D_LOAD
00000008 EFI_D_FS
00000010 EFI_D_POOL
00000020 EFI_D_PAGE
00000040 EFI_D_INFO
00000100 EFI_D_VARIABLE
00000400 EFI_D_BM
00001000 EFI_D_BLKIO
00004000 EFI_D_NET
00010000 EFI_D_UNDI
00020000 EFI_D_LOADFILE
00080000 EFI_D_EVENT
80000000 EFI_D_ERROR
* To change the error message output level:
Shell> err 80000107
Make this change and save to NVRAM? [Y/N]y
Shell> _
* To dump the debug mask of all handles which support debug mask protocol:
Shell> err -dump
Handle Mask
======== ========
1: 80000004
9: 80000004
B: 80000004
D: 80000004
F: 80000004
11: 80000004
13: 80000004
45: 80000004
62: 80000004
63: 80000004
64: 80000004
* To display the debug mask of handle 0x13:
Shell> err -dump 13
Handle Mask
======== ========
13: 80000004
* To change the debug mask of handle 0x13:
Shell> err 13 80000007
Shell> _
沒有留言:
張貼留言