GetKernel return in decimal instead of hex
This commit is contained in:
@@ -35,7 +35,7 @@ void ArchHooks_Unix::DumpDebugInfo()
|
||||
CString sys;
|
||||
int vers;
|
||||
GetKernel( sys, vers );
|
||||
LOG->Info( "OS: %s ver %06x", sys.c_str(), vers );
|
||||
LOG->Info( "OS: %s ver %06i", sys.c_str(), vers );
|
||||
|
||||
#if defined(CRASH_HANDLER)
|
||||
LOG->Info( "Crash backtrace component: %s", BACKTRACE_METHOD_TEXT );
|
||||
|
||||
@@ -170,7 +170,7 @@ try {
|
||||
int vers;
|
||||
GetKernel( sys, vers );
|
||||
LOG->Trace( "OS: %s ver %06x", sys.c_str(), vers );
|
||||
if( sys == "Linux" && vers >= 0x020600 )
|
||||
if( sys == "Linux" && vers >= 20600 )
|
||||
max_writeahead = max_writeahead_linux_26;
|
||||
|
||||
if( PREFSMAN->m_iSoundWriteAhead )
|
||||
|
||||
@@ -22,7 +22,7 @@ void GetKernel( CString &sys, int &vers )
|
||||
int major = atoi(matches[0]);
|
||||
int minor = atoi(matches[1]);
|
||||
int revision = atoi(matches[2]);
|
||||
vers = (major << 16) + (minor << 8) + (revision);
|
||||
vers = (major * 10000) + (minor * 100) + (revision);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user