Don't use un-guarded printfs for debug logging in XCB platform plugin
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>
Fri, 30 Sep 2011 11:43:44 +0000 (13:43 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 3 Oct 2011 03:57:45 +0000 (05:57 +0200)
commit95dfb6e668e88d006b00b69917c34ef07bdf8830
tree9d63bd8b6c2cb04b0509ee0b85be1aaa05249484
parent0cf6baa2d61ebaad2a2a0530c37f27e719b68f4b
Don't use un-guarded printfs for debug logging in XCB platform plugin

Using qDebug() instead of printf and friends allows clients to install a
message handler to supress the output.

The remaining printfs in the code are all guarded by custom debug ifdefs.

Change-Id: I38edc7452184783152f26b4dde6342c3bb9ef799
Reviewed-on: http://codereview.qt-project.org/5875
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/xcb/qxcbconnection.cpp
src/plugins/platforms/xcb/qxcbscreen.cpp