author | ar <ar> | 2004-05-02 14:59:14 (UTC) |
---|---|---|
committer | ar <ar> | 2004-05-02 14:59:14 (UTC) |
commit | 4e7ab937501b6495ce5635a7515e66a75e04d37e (patch) (side-by-side diff) | |
tree | 6cecc2081d0a15a101b7fca0a7a61c6c992d73bc /core/applets/cardmon/cardmon.cpp | |
parent | bb9c5e1bbf2692dc9b669e5f573edcdd92615476 (diff) | |
download | opie-4e7ab937501b6495ce5635a7515e66a75e04d37e.zip opie-4e7ab937501b6495ce5635a7515e66a75e04d37e.tar.gz opie-4e7ab937501b6495ce5635a7515e66a75e04d37e.tar.bz2 |
- convert qDebug to odebug
Diffstat (limited to 'core/applets/cardmon/cardmon.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/cardmon/cardmon.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/applets/cardmon/cardmon.cpp b/core/applets/cardmon/cardmon.cpp index 3a6ad27..3af3d03 100644 --- a/core/applets/cardmon/cardmon.cpp +++ b/core/applets/cardmon/cardmon.cpp @@ -144,26 +144,25 @@ void CardMonitor::mousePressEvent( QMouseEvent * ) QPoint p = mapToGlobal( QPoint( 0, 0 ) ); QSize s = menu->sizeHint(); int opt = menu->exec( QPoint( p.x() + ( width() / 2 ) - ( s.width() / 2 ), p.y() - s.height() ), 0 ); if ( opt == 1 ) { cmd = "/sbin/cardctl eject 0"; err = system( ( const char * ) cmd ); if ( err != 0 ) { - qDebug( "Could not execute `/sbin/cardctl eject 0'! err=%d", - err ); + odebug << "Could not execute `/sbin/cardctl eject 0'! err=" << err << oendl; popUp( tr( "CF/PCMCIA card eject failed!" ) ); } } else if ( opt == 0 ) { if ( ODevice::inst() ->system() == System_Familiar ) { cmd = "umount /dev/mmc/part1"; } else { cmd = "umount /dev/mmcda1"; @@ -171,26 +170,25 @@ void CardMonitor::mousePressEvent( QMouseEvent * ) err = system( ( const char * ) cmd ); if ( err != 0 ) { popUp( tr( "SD/MMC card eject failed!" ) ); } } else if ( opt == 2 ) { cmd = "/sbin/cardctl eject 1"; err = system( ( const char * ) cmd ); if ( err != 0 ) { - qDebug( "Could not execute `/sbin/cardctl eject 1'! err=%d", - err ); + odebug << "Could not execute `/sbin/cardctl eject 1'! err=" << err << oendl; popUp( tr( "CF/PCMCIA card eject failed!" ) ); } } delete menu; } void CardMonitor::cardMessage( const QCString & msg, const QByteArray & ) { if ( msg == "stabChanged()" ) { // odebug << "Pcmcia: stabchanged" << oendl; |