From 4fadb34a06018ea577395bf3355c60204bfd591b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 27 Feb 2004 09:45:22 +0000 Subject: [PATCH] output cleanup, don't log display name twice --- stepmania/src/archutils/Win32/DebugInfoHunt.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/stepmania/src/archutils/Win32/DebugInfoHunt.cpp b/stepmania/src/archutils/Win32/DebugInfoHunt.cpp index a72cc2a934..98180f14bc 100644 --- a/stepmania/src/archutils/Win32/DebugInfoHunt.cpp +++ b/stepmania/src/archutils/Win32/DebugInfoHunt.cpp @@ -9,12 +9,11 @@ void LogVideoDriverInfo( VideoDriverInfo info ) { - LOG->Info("Video Driver Information:"); - LOG->Info("%-15s:\t%s", "Provider", info.sProvider.c_str()); - LOG->Info("%-15s:\t%s", "Description", info.sDescription.c_str()); - LOG->Info("%-15s:\t%s", "Version", info.sVersion.c_str()); - LOG->Info("%-15s:\t%s", "Date", info.sDate.c_str()); - LOG->Info("%-15s:\t%s", "DeviceID", info.sDeviceID.c_str()); + LOG->Info( "Video Driver Information:" ); + LOG->Info( "Provider: %s", info.sProvider.c_str() ); + LOG->Info( "Description: %s", info.sDescription.c_str() ); + LOG->Info( "Driver: %s, %s", info.sVersion.c_str(), info.sDate.c_str() ); + LOG->Info( "DeviceID: %s", info.sDeviceID.c_str() ); } static void GetMemoryDebugInfo() @@ -34,8 +33,6 @@ static void GetDisplayDriverDebugInfo() if( sPrimaryDeviceName == "" ) LOG->Info( "Primary display driver could not be determined." ); - else - LOG->Info( "Primary display driver: %s", sPrimaryDeviceName.c_str() ); bool LoggedSomething = false; int i; @@ -59,6 +56,7 @@ static void GetDisplayDriverDebugInfo() } if( !LoggedSomething ) { + LOG->Info( "Primary display driver: %s", sPrimaryDeviceName.c_str() ); LOG->Warn("Couldn't find primary display driver; logging all drivers"); for( i=0; true; i++ )