MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / Warning

Function Warning

BaseTools/Source/C/Common/EfiUtilityMsgs.c:244–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244VOID
245Warning (
246 CHAR8 *FileName,
247 UINT32 LineNumber,
248 UINT32 MessageCode,
249 CHAR8 *Text,
250 CHAR8 *MsgFmt,
251 ...
252 )
253/*++
254
255Routine Description:
256 Print a warning message.
257
258Arguments:
259 FileName - name of the file where the warning was detected, or the name
260 of the application that detected the warning
261
262 LineNumber - the line number where the warning was detected (parsers).
263 0 should be specified if the utility is not a parser.
264
265 MessageCode - an application-specific warning code that can be referenced in
266 other documentation.
267
268 Text - the text in question (parsers)
269
270 MsgFmt - the format string for the warning message. Can contain formatting
271 controls for use with varargs.
272
273Returns:
274 None.
275
276--*/
277{
278 va_list List;
279
280 //
281 // Current Print Level not output warning information.
282 //
283 if (WARNING_LOG_LEVEL < mPrintLogLevel) {
284 return;
285 }
286 //
287 // If limits have been set, then check them
288 //
289 if (mPrintLimitsSet) {
290 //
291 // See if we've exceeded our total count
292 //
293 if (mMaxWarningsPlusErrors != 0) {
294 if (mErrorCount + mWarningCount > mMaxWarningsPlusErrors) {
295 PrintLimitExceeded ();
296 return ;
297 }
298 }
299 //
300 // See if we've exceeded our warning count
301 //

Callers 10

TestUtilityMessagesFunction · 0.70
GetQuotedStringFunction · 0.70
ProcessTokenIncludeFunction · 0.70
ParseFvInfFunction · 0.50
FfsRebaseFunction · 0.50
ParseCapInfFunction · 0.50
ScanSections64Function · 0.50
ScanSections32Function · 0.50
mainFunction · 0.50
HandleWarningMethod · 0.50

Calls 2

PrintLimitExceededFunction · 0.85
PrintMessageFunction · 0.85

Tested by 1

TestUtilityMessagesFunction · 0.56