mirror of https://github.com/acidanthera/audk.git
Fix the bug in DebugPort on error reporting.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7843 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
157398c258
commit
28af9a489d
|
@ -4,7 +4,7 @@
|
||||||
ALL CODE IN THE SERIALIO STACK MUST BE RE-ENTRANT AND CALLABLE FROM
|
ALL CODE IN THE SERIALIO STACK MUST BE RE-ENTRANT AND CALLABLE FROM
|
||||||
INTERRUPT CONTEXT
|
INTERRUPT CONTEXT
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation. <BR>
|
Copyright (c) 2006 - 2009, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -411,18 +411,6 @@ DebugPortStart (
|
||||||
);
|
);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG_CODE_BEGIN ();
|
|
||||||
UINTN BufferSize;
|
|
||||||
|
|
||||||
BufferSize = 48;
|
|
||||||
DebugPortWrite (
|
|
||||||
&mDebugPortDevice.DebugPortInterface,
|
|
||||||
0,
|
|
||||||
&BufferSize,
|
|
||||||
"DebugPort driver failed to open child controller\n\n"
|
|
||||||
);
|
|
||||||
DEBUG_CODE_END ();
|
|
||||||
|
|
||||||
gBS->CloseProtocol (
|
gBS->CloseProtocol (
|
||||||
ControllerHandle,
|
ControllerHandle,
|
||||||
&gEfiSerialIoProtocolGuid,
|
&gEfiSerialIoProtocolGuid,
|
||||||
|
@ -432,19 +420,6 @@ DebugPortStart (
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_CODE_BEGIN ();
|
|
||||||
UINTN BufferSize;
|
|
||||||
|
|
||||||
BufferSize = 38;
|
|
||||||
DebugPortWrite (
|
|
||||||
&mDebugPortDevice.DebugPortInterface,
|
|
||||||
0,
|
|
||||||
&BufferSize,
|
|
||||||
"Hello World from the DebugPort driver\n\n"
|
|
||||||
);
|
|
||||||
|
|
||||||
DEBUG_CODE_END ();
|
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue