summaryrefslogtreecommitdiffstats
path: root/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-06-27 21:14:00 +0800
committerLiming Gao <liming.gao@intel.com>2018-06-28 11:19:52 +0800
commit77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee (patch)
tree165a0742bc4af9973f73ad5443afdc07d8620254 /SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
parentba0014b9f8ae1a593f03e744f26008214c2b06a8 (diff)
downloadedk2-77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee.tar.gz
edk2-77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee.tar.bz2
edk2-77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee.zip
SourceLevelDebugPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Diffstat (limited to 'SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c')
-rw-r--r--SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
index 0a021307dc..0db33e66aa 100644
--- a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
+++ b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
@@ -383,9 +383,9 @@ DebugAgentReadBuffer (
UINT32 TimerRound;
UINT32 TimerFrequency;
UINT32 TimerCycle;
-
+
Begin = 0;
- TimeoutTicker = 0;
+ TimeoutTicker = 0;
TimerRound = 0;
TimerFrequency = GetMailboxPointer()->DebugTimerFrequency;
TimerCycle = GetApicTimerInitCount ();
@@ -405,7 +405,7 @@ DebugAgentReadBuffer (
while (Index < NumberOfBytes) {
if (DebugPortPollBuffer (Handle)) {
DebugPortReadBuffer (Handle, Buffer + Index, 1, 0);
- Index ++;
+ Index ++;
continue;
}
if (Timeout != 0) {
@@ -652,7 +652,7 @@ ReadRemainingBreakPacket (
if (IS_REQUEST (DebugHeader)) {
if (DebugHeader->SequenceNo == (UINT8) (Mailbox->HostSequenceNo + 1)) {
//
- // Only updagte HostSequenceNo for new command packet
+ // Only updagte HostSequenceNo for new command packet
//
UpdateMailboxContent (Mailbox, DEBUG_MAILBOX_HOST_SEQUENCE_NO_INDEX, DebugHeader->SequenceNo);
return EFI_SUCCESS;
@@ -1476,7 +1476,7 @@ CompressData (
if (Send) {
DebugPortWriteBuffer (Handle, &LastChar, 1);
}
-
+
} else if (LastCharCount >= 2) {
CompressedIndex += 3;
LastCharCount -= 2;