1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=utf-8">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.1.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>OS_TWarning</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">OS_TWarning <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14<DD><CODE>#include &lt;nitro/os.h&gt;</CODE><BR> <BR> <CODE>void OS_TWarning( const char *fmt, ... );</CODE>
15</DL>
16<H2>Arguments</H2>
17<TABLE border="1">
18  <TBODY>
19    <TR>
20<TD><I><B>fmt</B></I></TD>
21<TD>Output format string.</TD>
22    </TR>
23    <TR>
24      <TD><I><B>...</B></I></TD>
25<TD>Variable number of arguments</TD>
26    </TR>
27  </TBODY>
28</TABLE>
29<H2>Return Values</H2>
30<P>None.</P>
31<H2>Description</H2>
32<P>Outputs a string. Internally, this function calls <a HREF="OS_VSNPrintf.html"><code>OS_VSNPrintf</code></a>. Therefore, the usable string format (string output format) is more restricted than <a HREF="OS_Warning.html"><code>OS_Warning()</code></a>. However, you can save on the code and stack overhead by using this function instead of <a href="OS_VSNPrintf.html"><code>OS_VSNPrintf()</code></a> or <a href="OS_Warning.html"><code>OS_Warning()</code></a>.</P>
33<P>The output format is:</P>
34<P> <code>&lt;filename&gt;:&lt;linenumber&gt;</code> Warning: &lt;string&gt;</P>
35<P> The filename and line number described by this <CODE>OS_TWarning</CODE> function are indicated by <CODE>&lt;filename&gt;</CODE> and <CODE>&lt;linenumber&gt;</CODE>. <code>&lt;string&gt;</code> is created from <em><strong><code>fmt</code></strong></em> and the variable number of arguments.</P>
36<P>The maximum string length that can be displayed is 255 characters. If a string with 256 or more characters is specified, all characters from the 256th character are ignored.</P>
37<P>This function is used for debugging. It will not be generated in the final ROM version (<code>FINALROM</code>).</P>
38<H2>Internal Operation</H2>
39<P><code>OS_Warning()</code> is actually a <code>#define</code> of <code>OSi_Warning()</code>. <code>OSi_Warning()</code> is compiled with weak symbols. Therefore you can overwrite them with your own function definitions.</P>
40<H2>See Also</H2>
41<P><a href="OS_TPrintf.html"><code>OS_TPrintf</a></code><BR> <code><a href="OS_TPanic.html">OS_TPanic</a></code></P>
42<H2>Revision History</H2>
43<P>2009/10/02 Explained the maximum displayable string length.<BR>2004/11/25 Added a description of the weak symbol.<BR>2004/09/10 Initial version.</P>
44<hr><p>CONFIDENTIAL</p></body>
45</HTML>