diff options
Diffstat (limited to 'BaseTools/Source/C/Common/EfiUtilityMsgs.c')
-rw-r--r-- | BaseTools/Source/C/Common/EfiUtilityMsgs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/BaseTools/Source/C/Common/EfiUtilityMsgs.c b/BaseTools/Source/C/Common/EfiUtilityMsgs.c index 9d697da82d..68cf02469e 100644 --- a/BaseTools/Source/C/Common/EfiUtilityMsgs.c +++ b/BaseTools/Source/C/Common/EfiUtilityMsgs.c @@ -34,7 +34,7 @@ Abstract: //
STATIC STATUS mStatus = STATUS_SUCCESS;
STATIC CHAR8 mUtilityName[50] = { 0 };
-STATIC UINT32 mPrintLogLevel = INFO_LOG_LEVEL;
+STATIC UINT64 mPrintLogLevel = INFO_LOG_LEVEL;
STATIC CHAR8 *mSourceFileName = NULL;
STATIC UINT32 mSourceFileLineNum = 0;
STATIC UINT32 mErrorCount = 0;
@@ -355,7 +355,7 @@ VOID DebugMsg (
CHAR8 *FileName,
UINT32 LineNumber,
- UINT32 MsgLevel,
+ UINT64 MsgLevel,
CHAR8 *Text,
CHAR8 *MsgFmt,
...
@@ -495,7 +495,7 @@ Notes: if (Cptr != NULL) {
sprintf (Line, ": %s", Cptr);
if (LineNumber != 0) {
- sprintf (Line2, "(%d)", LineNumber);
+ sprintf (Line2, "(%u)", (unsigned) LineNumber);
strcat (Line, Line2);
}
}
@@ -509,7 +509,7 @@ Notes: }
sprintf (Line, "%s", Cptr);
if (LineNumber != 0) {
- sprintf (Line2, "(%d)", LineNumber);
+ sprintf (Line2, "(%u)", (unsigned) LineNumber);
strcat (Line, Line2);
}
} else {
@@ -524,7 +524,7 @@ Notes: // message for you. It has to be decimal digits too.
//
if (MessageCode != 0) {
- sprintf (Line2, ": %s %04d", Type, MessageCode);
+ sprintf (Line2, ": %s %04u", Type, (unsigned) MessageCode);
} else {
sprintf (Line2, ": %s", Type);
}
@@ -665,7 +665,7 @@ Returns: VOID
SetPrintLevel (
- UINT32 LogLevel
+ UINT64 LogLevel
)
/*++
@@ -843,7 +843,7 @@ TestUtilityMessages ( )
{
CHAR8 *ArgStr = "ArgString";
- INTN ArgInt;
+ int ArgInt;
ArgInt = 0x12345678;
//
|