Index: qgit-2.4/src/common.h =================================================================== --- qgit-2.4/src/common.h +++ qgit-2.4/src/common.h 2012-09-07 18:45:16.210738025 +0100 @@ -30,13 +30,13 @@ // some debug macros #define constlatin(x) (_valueOf(x).toLatin1().constData()) -#define dbg(x) qDebug(#x " is <%s>", constlatin(x)) -#define dbs(x) qDebug(constlatin(x), "") -#define dbp(s, x) qDebug(constlatin(_valueOf(s).arg(x)), "") -#define db1 qDebug("Mark Nr. 1") -#define db2 qDebug("Mark Nr. 2") -#define db3 qDebug("Mark Nr. 3") -#define db4 qDebug("Mark Nr. 4") +#define dbg(x) qDebug("%s", #x " is <%s>", constlatin(x)) +#define dbs(x) qDebug("%s", constlatin(x), "") +#define dbp(s, x) qDebug("%s", constlatin(_valueOf(s).arg(x)), "") +#define db1 qDebug("%s", "Mark Nr. 1") +#define db2 qDebug("%s", "Mark Nr. 2") +#define db3 qDebug("%s", "Mark Nr. 3") +#define db4 qDebug("%s", "Mark Nr. 4") #define dbStart dbs("Starting timer..."); QTime _t; _t.start() #define dbRestart dbp("Elapsed time is %1 ms", _t.restart()) Index: qgit-2.4/src/exceptionmanager.cpp =================================================================== --- qgit-2.4/src/exceptionmanager.cpp +++ qgit-2.4/src/exceptionmanager.cpp 2012-09-07 18:45:34.418400383 +0100 @@ -35,7 +35,7 @@ if (match) { QString info("Caught exception \'" + descriptions[excp] + "\' while in " + context); - qDebug(info.toLatin1().constData()); + qDebug("%s", info.toLatin1().constData()); } return match; }