1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<HTML><HEAD><TITLE>OSReportFlush</TITLE>
3<META http-equiv=Content-Type content="text/html; charset=windows-1252">
4<META content="MSHTML 6.00.2900.3314" name=GENERATOR>
5<META http-equiv=Content-Style-Type content=text/css><LINK
6href="../../CSS/revolution.css" type=text/css rel=stylesheet></HEAD>
7<BODY>
8<H1>OSReportFlush</H1>
9<H2>Syntax</H2>
10<DL>
11  <DD><PRE class=construction>#include &lt;revolution/os/OSLog.h&gt;
12
13s32 OSReportFlush( void );
14</PRE></DD></DL>
15<H2>Arguments</H2>
16<P>None.</P>
17<H2>Return Values</H2>
18<p>
19Returns 0 if successful or one of the following codes if unsuccessful.
20<p>
21<code>
22NAND_RESULT_ACCESS<br>
23NAND_RESULT_ALLOC_FAILED<br>
24NAND_RESULT_BUSY<br>
25NAND_RESULT_CORRUPT<br>
26NAND_RESULT_EXISTS<br>
27NAND_RESULT_INVALID<br>
28NAND_RESULT_MAXFILES<br>
29NAND_RESULT_NOEXISTS<br>
30NAND_RESULT_UNKNOWN<br>
31NAND_RESULT_FATAL_ERROR<br>
32</code>
33</p>
34</p>
35
36<H2>Description</H2>
37<P>If <CODE>OSReport</CODE> is called while the output destination for <CODE>OSReport</CODE> is set to Wii console NAND memory, the string is temporarily stored in a buffer in main memory of the Wii console without writing it directly to Wii console NAND memory.<BR> <CODE>OSReportFlush</CODE> must be called to write this string correctly to Wii console NAND memory.<BR>
38
39<p><B>Note:</B>The oslog library is linked when using <CODE>OSReportFlush</CODE>. Memory for writing to NAND must be allocated using <a href="osreporviewer.html"><CODE>OSReportViewer</CODE></a>.<BR> Before you use <CODE>OSReportFlush</CODE>, we recommend that you take a look at <A href="intro.html">OSLog Overview</A> first.</p>
40
41<BR>
42<H2>See Also</H2>
43<P>
44<A href="intro.html">OSLog Overview</A><BR> <A href="../toc.html#OSLog" target="contents">Function for Saving Debug Output</A><BR> <A href="OSReportDestination.html"><CODE>OSReportDestination</CODE></A><BR> <A href="../Error/OSReport.html"><CODE>OSReport</CODE></A>
45</P>
46<H2>Revision History</H2>
47<P>2008/11/19 Initial version.</P><hr><p>CONFIDENTIAL</p></body></HTML>
48