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

svn at pcbsd.org svn at pcbsd.org
Mon Mar 25 07:02:53 PDT 2013


Author: kenmoore
Date: 2013-03-25 14:02:52 +0000 (Mon, 25 Mar 2013)
New Revision: 21957

Modified:
   pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp
Log:
Change the debugging output a bit to reduce unneccesary/duplicate output



Modified: pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp	2013-03-25 09:23:29 UTC (rev 21956)
+++ pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp	2013-03-25 14:02:52 UTC (rev 21957)
@@ -191,13 +191,13 @@
   //all that is left in nsd is the new additions
 
   //Remove any devices that have been disconnected
+  if(DEBUG_MODE){ qDebug() << "Device Removals:" << rmList; }
   for(int i=0; i<rmList.length(); i++){
-    if(DEBUG_MODE){ qDebug() << "Device Removals:" << rmList; }
     removeDevice(rmList[i]);
   }
   //Add any devices that have been connected
+  if(DEBUG_MODE){ qDebug() << "Device Additions:" << nsd; } 
   for(int i=0; i<nsd.length(); i++){
-    if(DEBUG_MODE){ qDebug() << "Device Additions:" << nsd; }  
     //Check if it is a good device
     QString dlabel, dtype, dfs, dsize; //additional output info
     bool good = DCheck->devInfo(nsd[i],&dtype,&dlabel,&dfs,&dsize);



More information about the Commits mailing list