mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
committed by
Mathew Sutcliffe
parent
f6905d1d8b
commit
f49341841e
@@ -224,8 +224,10 @@ namespace BlackMisc
|
||||
// Try to open the file if the handle is invalid
|
||||
if (m_file->handle() == -1)
|
||||
{
|
||||
if ( !m_file->open(QIODevice::WriteOnly) )
|
||||
printf ("Can't open log file '%s': %s\n", m_fileName.toLatin1().constData(), strerror(errno));
|
||||
if ( !m_file->open(QIODevice::WriteOnly) ) {
|
||||
// suppress warning about unsafe strerror
|
||||
printf ("Can't open log file '%s': %d (%s)\n", m_fileName.toLatin1().constData(), errno, ""/*strerror(errno)*/);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_file->handle() != -1)
|
||||
|
||||
Reference in New Issue
Block a user