output cleanup, don't log display name twice
This commit is contained in:
@@ -10,11 +10,10 @@
|
|||||||
void LogVideoDriverInfo( VideoDriverInfo info )
|
void LogVideoDriverInfo( VideoDriverInfo info )
|
||||||
{
|
{
|
||||||
LOG->Info( "Video Driver Information:" );
|
LOG->Info( "Video Driver Information:" );
|
||||||
LOG->Info("%-15s:\t%s", "Provider", info.sProvider.c_str());
|
LOG->Info( "Provider: %s", info.sProvider.c_str() );
|
||||||
LOG->Info("%-15s:\t%s", "Description", info.sDescription.c_str());
|
LOG->Info( "Description: %s", info.sDescription.c_str() );
|
||||||
LOG->Info("%-15s:\t%s", "Version", info.sVersion.c_str());
|
LOG->Info( "Driver: %s, %s", info.sVersion.c_str(), info.sDate.c_str() );
|
||||||
LOG->Info("%-15s:\t%s", "Date", info.sDate.c_str());
|
LOG->Info( "DeviceID: %s", info.sDeviceID.c_str() );
|
||||||
LOG->Info("%-15s:\t%s", "DeviceID", info.sDeviceID.c_str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void GetMemoryDebugInfo()
|
static void GetMemoryDebugInfo()
|
||||||
@@ -34,8 +33,6 @@ static void GetDisplayDriverDebugInfo()
|
|||||||
|
|
||||||
if( sPrimaryDeviceName == "" )
|
if( sPrimaryDeviceName == "" )
|
||||||
LOG->Info( "Primary display driver could not be determined." );
|
LOG->Info( "Primary display driver could not be determined." );
|
||||||
else
|
|
||||||
LOG->Info( "Primary display driver: %s", sPrimaryDeviceName.c_str() );
|
|
||||||
|
|
||||||
bool LoggedSomething = false;
|
bool LoggedSomething = false;
|
||||||
int i;
|
int i;
|
||||||
@@ -59,6 +56,7 @@ static void GetDisplayDriverDebugInfo()
|
|||||||
}
|
}
|
||||||
if( !LoggedSomething )
|
if( !LoggedSomething )
|
||||||
{
|
{
|
||||||
|
LOG->Info( "Primary display driver: %s", sPrimaryDeviceName.c_str() );
|
||||||
LOG->Warn("Couldn't find primary display driver; logging all drivers");
|
LOG->Warn("Couldn't find primary display driver; logging all drivers");
|
||||||
|
|
||||||
for( i=0; true; i++ )
|
for( i=0; true; i++ )
|
||||||
|
|||||||
Reference in New Issue
Block a user