# OS_Warning

## Syntax

  `#include <nitro/os.h>`
  `void OS_Warning( const char *fmt, ... );`

## Arguments

fmt | Output format string.
... | Variable number of arguments

## Return Values

None.

## Description

Outputs a string. A variable number of arguments can be given using the format string `fmt`.

The output format is:

`<filename>:<linenumber>` Warning: <string>

The filename and line number described by this `OS_Warning` function are indicated by `<filename>` and `<linenumber>`. `<string>` is created from `fmt` and the variable number of arguments.

This function is used for debugging. It will not be generated in the final ROM version (`FINALROM`).

## Internal Operation

`OS_Warning()` is actually a `#define` of `OSi_Warning()`. `OSi_Warning()` is compiled with weak symbols. Therefore you can overwrite them with your own function definitions.

## See Also

`OS_Printf`, `OS_Panic`

## Revision History

2004/11/25 Added internal operation and description of weak symbols.
2003/12/01 Initial version.

CONFIDENTIAL