From 270f537b742eb3f05ba4ba5c6c8e3a0e83bae894 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 24 Apr 2007 08:56:05 +0000 Subject: [PATCH] Fix build. --- stepmania/src/RageFileDriverDirect.cpp | 8 ++++---- stepmania/src/RageFileDriverDirectHelpers.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/RageFileDriverDirect.cpp b/stepmania/src/RageFileDriverDirect.cpp index e4b6a1a92f..36cdcf4f76 100644 --- a/stepmania/src/RageFileDriverDirect.cpp +++ b/stepmania/src/RageFileDriverDirect.cpp @@ -248,14 +248,14 @@ bool RageFileObjDirect::FinalFlush() int dirfd = open( Dirname(m_sPath), O_RDONLY ); if( dirfd == -1 ) { - WARN( "Error synchronizing open(%s dir): %s", this->m_sPath.c_str(), strerror(errno) ); + WARN( ssprintf("Error synchronizing open(%s dir): %s", this->m_sPath.c_str(), strerror(errno)) ); SetError( strerror(errno) ); return false; } if( fsync( dirfd ) == -1 ) { - WARN( "Error synchronizing fsync(%s dir): %s", this->m_sPath.c_str(), strerror(errno) ); + WARN( ssprintf("Error synchronizing fsync(%s dir): %s", this->m_sPath.c_str(), strerror(errno)) ); SetError( strerror(errno) ); close( dirfd ); return false; @@ -316,8 +316,8 @@ RageFileObjDirect::~RageFileObjDirect() #else if( rename( sOldPath, sNewPath ) == -1 ) { - WARN( "Error renaming \"%s\" to \"%s\": %s", - sOldPath.c_str(), sNewPath.c_str(), strerror(errno) ); + WARN( ssprintf("Error renaming \"%s\" to \"%s\": %s", + sOldPath.c_str(), sNewPath.c_str(), strerror(errno)) ); SetError( strerror(errno) ); break; } diff --git a/stepmania/src/RageFileDriverDirectHelpers.cpp b/stepmania/src/RageFileDriverDirectHelpers.cpp index 7ff9a74df3..e8355fe712 100644 --- a/stepmania/src/RageFileDriverDirectHelpers.cpp +++ b/stepmania/src/RageFileDriverDirectHelpers.cpp @@ -268,8 +268,8 @@ void DirectFilenameDB::PopulateFileSet( FileSet &fs, const RString &path ) continue; /* Huh? */ - WARN( "Got file '%s' in '%s' from list, but can't stat? (%s)", - pEnt->d_name, sPath.c_str(), strerror(errno) ); + WARN( ssprintf("Got file '%s' in '%s' from list, but can't stat? (%s)", + pEnt->d_name, sPath.c_str(), strerror(errno)) ); continue; } else