[PC-BSD Commits] r21910 - pcbsd/current/src-qt4/pc-mounttray

svn at pcbsd.org svn at pcbsd.org
Wed Mar 20 05:50:16 PDT 2013


Author: kenmoore
Date: 2013-03-20 12:50:15 +0000 (Wed, 20 Mar 2013)
New Revision: 21910

Modified:
   pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp
Log:
Make the mount tray a bit more verbose about when new devices are attached.



Modified: pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp	2013-03-20 09:21:57 UTC (rev 21909)
+++ pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp	2013-03-20 12:50:15 UTC (rev 21910)
@@ -181,7 +181,10 @@
       QString type = line.section("type=",1,1).section(" ",0,0).simplified();
       cdev = line.section("cdev=",1,1).section(" ",0,0).simplified();
       cdev.prepend("/dev/");
-      if(type=="CREATE"){ isAttached=TRUE; }
+      if(type=="CREATE"){ 
+        isAttached=TRUE;
+        qDebug() << "New device attached:" << cdev;
+      }
       MenuItem::getDevInfo(cdev, &cdevtype, &dlab, &dfs, &dmax);
 	    
       //If device is recognized - make sure it is also valid
@@ -194,7 +197,7 @@
     //Perform action if a device is found
     if(deviceFound){
       if(isAttached){
-        qDebug() << "New device detected:" << dlab << cdev << cdevtype << dfs << dmax +" blocks";
+        qDebug() << "New valid device:" << dlab << cdev << cdevtype << dfs << dmax +" blocks";
 	if(dmax.toInt() > 60){     
 	   addDevice(cdev,dlab);  
 	   QString title = tr("New Device");
@@ -205,7 +208,7 @@
 	}
       }else{
 	removeDevice(cdev);
-        qDebug() << "Device removal detected:" <<  cdev;
+        qDebug() << "Valid device removal detected:" <<  cdev;
       }
     }
   } // end loop over all devd output lines



More information about the Commits mailing list