| 242 | } |
| 243 | |
| 244 | VOID |
| 245 | Warning ( |
| 246 | CHAR8 *FileName, |
| 247 | UINT32 LineNumber, |
| 248 | UINT32 MessageCode, |
| 249 | CHAR8 *Text, |
| 250 | CHAR8 *MsgFmt, |
| 251 | ... |
| 252 | ) |
| 253 | /*++ |
| 254 | |
| 255 | Routine Description: |
| 256 | Print a warning message. |
| 257 | |
| 258 | Arguments: |
| 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 | |
| 273 | Returns: |
| 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 | // |