Please, use vfprintf( stream, fmt, ap ); instead of  fprintf( stream, fmt, ap );<br><br><div class="gmail_quote">2011/9/22 Rémi Denis-Courmont <span dir="ltr"><a href="mailto:git@videolan.org">git@videolan.org</a></span><br>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">+    fprintf( stream, "%s%s: ", item->psz_module, ppsz_type[type] );<br>

+    fprintf( stream, fmt, ap );<br>
     putc_unlocked( '\n', stream );<br>
     funlockfile( stream );<br>
     vlc_restorecancel( canc );
<br></blockquote></div>