Browse Source

Fixed missing argument in debug messages. Now they're readable!

QGC4.4
Bryant 11 years ago
parent
commit
07a50dbb4e
  1. 2
      src/main.cc

2
src/main.cc

@ -55,7 +55,7 @@ This file is part of the QGROUNDCONTROL project @@ -55,7 +55,7 @@ This file is part of the QGROUNDCONTROL project
void msgHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{
const char symbols[] = { 'I', 'E', '!', 'X' };
QString output = QString("[%1] in %2:%3 - \"%2\"").arg(symbols[type]).arg(context.file).arg(context.line).arg(msg);
QString output = QString("[%1] at %2:%3 - \"%4\"").arg(symbols[type]).arg(context.file).arg(context.line).arg(msg);
std::cerr << output.toStdString() << std::endl;
if( type == QtFatalMsg ) abort();
}

Loading…
Cancel
Save