mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +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
|
// Try to open the file if the handle is invalid
|
||||||
if (m_file->handle() == -1)
|
if (m_file->handle() == -1)
|
||||||
{
|
{
|
||||||
if ( !m_file->open(QIODevice::WriteOnly) )
|
if ( !m_file->open(QIODevice::WriteOnly) ) {
|
||||||
printf ("Can't open log file '%s': %s\n", m_fileName.toLatin1().constData(), strerror(errno));
|
// 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)
|
if (m_file->handle() != -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user