change a printf to a qDebug

and removing an unneeded \n
correcting typo
Merge pull request #861 from Jojo-Schmitz/qDebug

change a printf to a qDebug