Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1998 Intel Corporation
  3. Module Name:
  4. err.c
  5. Abstract:
  6. Shell app "err"
  7. Revision History
  8. --*/
  9. #include "shell.h"
  10. EFI_STATUS
  11. InitializeError (
  12. IN EFI_HANDLE ImageHandle,
  13. IN EFI_SYSTEM_TABLE *SystemTable
  14. );
  15. EFI_DRIVER_ENTRY_POINT(InitializeError)
  16. EFI_STATUS
  17. InitializeError (
  18. IN EFI_HANDLE ImageHandle,
  19. IN EFI_SYSTEM_TABLE *SystemTable
  20. )
  21. {
  22. /*
  23. * Check to see if the app is to install as a "internal command"
  24. * to the shell
  25. */
  26. InstallInternalShellCommand (
  27. ImageHandle, SystemTable, InitializeError,
  28. L"err", /* command */
  29. L"err [level]", /* command syntax */
  30. L"Set or display error level", /* 1 line descriptor */
  31. NULL /* command help page */
  32. );
  33. /*
  34. * We are no being installed as an internal command driver, initialize
  35. * as an nshell app and run
  36. */
  37. InitializeShellApplication (ImageHandle, SystemTable);
  38. /*
  39. *
  40. */
  41. if ( SI->Argc > 1 ) {
  42. EFIDebug = xtoi(SI->Argv[1]);
  43. }
  44. Print (L"\n%HEFI ERROR%N %016x\n", EFIDebug);
  45. Print (L" %08x D_INIT\n", D_INIT);
  46. Print (L" %08x D_WARN\n", D_WARN);
  47. Print (L" %08x D_LOAD\n", D_LOAD);
  48. Print (L" %08x D_FS\n", D_FS);
  49. Print (L" %08x D_POOL\n", D_POOL);
  50. Print (L" %08x D_PAGE\n", D_PAGE);
  51. Print (L" %08x D_INFO\n", D_INFO);
  52. Print (L" %08x D_VAR\n", D_VAR);
  53. Print (L" %08x D_PARSE\n", D_PARSE);
  54. Print (L" %08x D_BM\n", D_BM);
  55. Print (L" %08x D_BLKIO\n", D_BLKIO);
  56. Print (L" %08x D_BLKIO_ULTRA\n", D_BLKIO_ULTRA);
  57. Print (L" %08x D_NET\n", D_NET);
  58. Print (L" %08x D_NET_ULTRA\n", D_NET_ULTRA);
  59. Print (L" %08x D_ERROR\n", D_ERROR);
  60. return EFI_SUCCESS;
  61. }