1
0
forked from 0ad/0ad

Allow better hwdetect debugging

This was SVN commit r10491.
This commit is contained in:
Ykkrosh 2011-11-09 11:54:05 +00:00
parent 7b12132650
commit 8fba3f92b1
2 changed files with 4 additions and 4 deletions

View File

@ -260,11 +260,11 @@ function RunDetection(settings)
global.RunHardwareDetection = function(settings)
{
//print(uneval(settings)+"\n");
//print(JSON.stringify(settings, null, 1).length+"\n");
var output = RunDetection(settings);
//print(uneval(output)+"\n");
//print(JSON.stringify(output, null, 1)+"\n");
for (var i = 0; i < output.warnings.length; ++i)
warn(output.warnings[i]);

View File

@ -141,8 +141,8 @@ bool debug_filter_allows(const wchar_t* text)
#undef debug_printf // allowing #defining it out
void debug_printf(const wchar_t* fmt, ...)
{
wchar_t buf[4096];
wchar_t buf[16384];
va_list ap;
va_start(ap, fmt);
const int numChars = vswprintf_s(buf, ARRAY_SIZE(buf), fmt, ap);