From 28af9a489dc3038962915405fcd4db5bc2ba5d9b Mon Sep 17 00:00:00 2001 From: xli24 Date: Tue, 10 Mar 2009 05:38:54 +0000 Subject: 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 --- MdeModulePkg/Universal/DebugPortDxe/DebugPort.c | 27 +------------------------ 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'MdeModulePkg/Universal') diff --git a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c index a63ef84..a66e356 100644 --- a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c +++ b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c @@ -4,7 +4,7 @@ ALL CODE IN THE SERIALIO STACK MUST BE RE-ENTRANT AND CALLABLE FROM INTERRUPT CONTEXT -Copyright (c) 2006 - 2008, Intel Corporation.
+Copyright (c) 2006 - 2009, Intel Corporation.
All rights reserved. This program and the accompanying materials 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 @@ -411,18 +411,6 @@ DebugPortStart ( ); 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 ( ControllerHandle, &gEfiSerialIoProtocolGuid, @@ -432,19 +420,6 @@ DebugPortStart ( 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; } -- cgit v1.1