Diffstat (limited to 'noncore/settings/networksettings2/usb') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/usb/usbrun.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/noncore/settings/networksettings2/usb/usbrun.cpp b/noncore/settings/networksettings2/usb/usbrun.cpp index beacd7b..b8ac8a8 100644 --- a/noncore/settings/networksettings2/usb/usbrun.cpp +++ b/noncore/settings/networksettings2/usb/usbrun.cpp @@ -14,2 +14,3 @@ void USBRun::detectState( NodeCollection * NC ) { QFile F( S ); + Log(("Detecting for %s\n", NC->name().latin1() )); @@ -20,2 +21,3 @@ void USBRun::detectState( NodeCollection * NC ) { X = TS.readLine(); + Log(("%s exists\n", S.latin1() )); // find interface @@ -36,3 +38,3 @@ void USBRun::detectState( NodeCollection * NC ) { - fprintf( stderr, "Assigned %p\n", assignedInterface() ); + Log(("Assigned %p\n", assignedInterface() )); if( ( Run = assignedInterface() ) ) { @@ -55,3 +57,3 @@ void USBRun::detectState( NodeCollection * NC ) { - fprintf( stderr, "%s %d %d=%d %d\n", + Log(("%s %d %d=%d %d\n", Run->Name.latin1(), @@ -59,3 +61,3 @@ void USBRun::detectState( NodeCollection * NC ) { Run->CardType, ARPHRD_ETHER, - ! Run->IsUp ); + ! Run->IsUp )); @@ -65,3 +67,3 @@ void USBRun::detectState( NodeCollection * NC ) { ) { - fprintf( stderr, "Released(OFF)\n" ); + Log(("Released(OFF)\n" )); // proper type, and Not UP -> free @@ -72,3 +74,3 @@ void USBRun::detectState( NodeCollection * NC ) { // no free found - fprintf( stderr, "UNA\n" ); + Log(("UNA\n" )); @@ -96,3 +98,3 @@ bool USBRun::setState( NodeCollection * NC, Action_t A, bool ) { assignInterface( N ); - fprintf( stderr, "Assing %p\n", N ); + Log(("Assing %p\n", N )); NC->setCurrentState( Available ); |