diff options
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c | 6 | ||||
-rw-r--r-- | IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c index 1b409310cf..c3cac2b6ac 100644 --- a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c +++ b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c @@ -94,7 +94,7 @@ SerialStatusCodeReportWorker ( if (CallerId != NULL) {
CharCount += AsciiSPrint (
- &Buffer[CharCount - 1],
+ &Buffer[CharCount],
(sizeof (Buffer) - (sizeof (Buffer[0]) * CharCount)),
" %g",
CallerId
@@ -103,7 +103,7 @@ SerialStatusCodeReportWorker ( if (Data != NULL) {
CharCount += AsciiSPrint (
- &Buffer[CharCount - 1],
+ &Buffer[CharCount],
(sizeof (Buffer) - (sizeof (Buffer[0]) * CharCount)),
" %x",
Data
@@ -111,7 +111,7 @@ SerialStatusCodeReportWorker ( }
CharCount += AsciiSPrint (
- &Buffer[CharCount - 1],
+ &Buffer[CharCount],
(sizeof (Buffer) - (sizeof (Buffer[0]) * CharCount)),
"\n\r"
);
diff --git a/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c b/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c index c4e9e3340b..3ebaaed6cd 100644 --- a/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c +++ b/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c @@ -92,7 +92,7 @@ SerialStatusCodeReportWorker ( if (CallerId != NULL) {
CharCount += AsciiSPrint (
- &Buffer[CharCount - 1],
+ &Buffer[CharCount],
(sizeof (Buffer) - (sizeof (Buffer[0]) * CharCount)),
" %g",
CallerId
@@ -101,7 +101,7 @@ SerialStatusCodeReportWorker ( if (Data != NULL) {
CharCount += AsciiSPrint (
- &Buffer[CharCount - 1],
+ &Buffer[CharCount],
(sizeof (Buffer) - (sizeof (Buffer[0]) * CharCount)),
" %x",
Data
@@ -109,7 +109,7 @@ SerialStatusCodeReportWorker ( }
CharCount += AsciiSPrint (
- &Buffer[CharCount - 1],
+ &Buffer[CharCount],
(sizeof (Buffer) - (sizeof (Buffer[0]) * CharCount)),
"\n\r"
);
|