summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/usb/usbrun.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings2/usb/usbrun.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/usb/usbrun.cpp14
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
@@ -13,4 +13,5 @@ void USBRun::detectState( NodeCollection * NC ) {
InterfaceInfo * Run;
QFile F( S );
+ Log(("Detecting for %s\n", NC->name().latin1() ));
if( F.open( IO_ReadOnly ) ) {
@@ -19,4 +20,5 @@ void USBRun::detectState( NodeCollection * NC ) {
QTextStream TS(&F);
X = TS.readLine();
+ Log(("%s exists\n", S.latin1() ));
// find interface
if( handlesInterface( X ) ) {
@@ -35,5 +37,5 @@ void USBRun::detectState( NodeCollection * NC ) {
}
- fprintf( stderr, "Assigned %p\n", assignedInterface() );
+ Log(("Assigned %p\n", assignedInterface() ));
if( ( Run = assignedInterface() ) ) {
// we already have an interface assigned -> still present ?
@@ -54,9 +56,9 @@ void USBRun::detectState( NodeCollection * NC ) {
Run = It.current();
- fprintf( stderr, "%s %d %d=%d %d\n",
+ Log(("%s %d %d=%d %d\n",
Run->Name.latin1(),
handlesInterface( Run->Name ),
Run->CardType, ARPHRD_ETHER,
- ! Run->IsUp );
+ ! Run->IsUp ));
if( handlesInterface( Run->Name ) &&
@@ -64,5 +66,5 @@ void USBRun::detectState( NodeCollection * NC ) {
! Run->IsUp
) {
- fprintf( stderr, "Released(OFF)\n" );
+ Log(("Released(OFF)\n" ));
// proper type, and Not UP -> free
NC->setCurrentState( Off );
@@ -71,5 +73,5 @@ void USBRun::detectState( NodeCollection * NC ) {
}
// no free found
- fprintf( stderr, "UNA\n" );
+ Log(("UNA\n" ));
NC->setCurrentState( Unavailable );
@@ -95,5 +97,5 @@ bool USBRun::setState( NodeCollection * NC, Action_t A, bool ) {
N->assignNode( netNode() );
assignInterface( N );
- fprintf( stderr, "Assing %p\n", N );
+ Log(("Assing %p\n", N ));
NC->setCurrentState( Available );
return 1;