GetKernel return in decimal instead of hex

This commit is contained in:
Glenn Maynard
2004-01-02 07:01:27 +00:00
parent 75795a6afb
commit 8c6249aa8c
3 changed files with 3 additions and 3 deletions
@@ -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 )
+1 -1
View File
@@ -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);
}
}
}