Changeset 48307 in vbox for trunk/src/VBox
- Timestamp:
- Sep 5, 2013 1:30:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
r48301 r48307 100 100 /* Get medium ID: */ 101 101 QString strMediumID = medium.id(); 102 LogRel (("UIMediumEnumerator: Medium with ID={%s} created.\n", strMediumID.toAscii().constData()));102 LogRelFlow(("UIMediumEnumerator: Medium with ID={%s} created.\n", strMediumID.toAscii().constData())); 103 103 104 104 /* Make sure medium doesn't exists already: */ … … 116 116 /* Get medium ID: */ 117 117 QString strMediumID = medium.id(); 118 LogRel (("UIMediumEnumerator: Medium with ID={%s} updated.\n", strMediumID.toAscii().constData()));118 LogRelFlow(("UIMediumEnumerator: Medium with ID={%s} updated.\n", strMediumID.toAscii().constData())); 119 119 120 120 /* Make sure medium still exists: */ … … 130 130 void UIMediumEnumerator::deleteMedium(const QString &strMediumID) 131 131 { 132 LogRel (("UIMediumEnumerator: Medium with ID={%s} removed.\n", strMediumID.toAscii().constData()));132 LogRelFlow(("UIMediumEnumerator: Medium with ID={%s} removed.\n", strMediumID.toAscii().constData())); 133 133 134 134 /* Make sure medium still exists: */ … … 159 159 160 160 /* Notify listener: */ 161 LogRel (("UIMediumEnumerator: Medium-enumeration started...\n"));161 LogRelFlow(("UIMediumEnumerator: Medium-enumeration started...\n")); 162 162 m_fMediumEnumerationInProgress = true; 163 163 emit sigMediumEnumerationStarted(); … … 171 171 void UIMediumEnumerator::sltHandleMachineUpdate(QString strMachineID) 172 172 { 173 LogRel (("Machine event received, ID = %s\n", strMachineID.toAscii().constData()));173 LogRelFlow(("UIMediumEnumerator: Machine event received, ID = %s\n", strMachineID.toAscii().constData())); 174 174 175 175 /* Compose a map of previous usage: */ … … 182 182 oldUsage << strMediumID; 183 183 } 184 LogRel (("Old usage: %s\n",oldUsage.join(", ").toAscii().constData()));184 LogRelFlow(("UIMediumEnumerator: Old usage: %s\n", oldUsage.isEmpty() ? "<empty>" : oldUsage.join(", ").toAscii().constData())); 185 185 186 186 /* Compose a map of current usage: */ … … 201 201 } 202 202 } 203 LogRel (("New usage: %s\n",newUsage.join(", ").toAscii().constData()));203 LogRelFlow(("UIMediumEnumerator: New usage: %s\n", newUsage.isEmpty() ? "<empty>" : newUsage.join(", ").toAscii().constData())); 204 204 205 205 /* Manipulations over the sets: */ … … 210 210 QStringList excludedList = excludedSet.toList(); 211 211 QStringList includedList = includedSet.toList(); 212 LogRel(("Excluded items of machine usage: %s\n", excludedList.join(", ").toAscii().constData())); 213 LogRel(("Included items of machine usage: %s\n", includedList.join(", ").toAscii().constData())); 212 if (!excludedList.isEmpty()) 213 LogRelFlow(("UIMediumEnumerator: Items excluded from machine usage: %s\n", excludedList.join(", ").toAscii().constData())); 214 if (!includedList.isEmpty()) 215 LogRelFlow(("UIMediumEnumerator: Items included into machine usage: %s\n", includedList.join(", ").toAscii().constData())); 214 216 215 217 /* For each of excluded items: */ … … 244 246 } 245 247 246 LogRel (("Machine event processed, ID = %s\n", strMachineID.toAscii().constData()));248 LogRelFlow(("UIMediumEnumerator: Machine event processed, ID = %s\n", strMachineID.toAscii().constData())); 247 249 } 248 250 … … 256 258 UIMedium medium = pTask->data().value<UIMedium>(); 257 259 QString strMediumID = medium.id(); 258 LogRel (("UIMediumEnumerator: Medium with ID={%s} enumerated.\n", strMediumID.toAscii().constData()));260 LogRelFlow(("UIMediumEnumerator: Medium with ID={%s} enumerated.\n", strMediumID.toAscii().constData())); 259 261 260 262 /* Delete task: */ … … 275 277 { 276 278 /* Notify listener: */ 277 LogRel (("UIMediumEnumerator: Medium-enumeration finished!\n"));279 LogRelFlow(("UIMediumEnumerator: Medium-enumeration finished!\n")); 278 280 m_fMediumEnumerationInProgress = false; 279 281 emit sigMediumEnumerationFinished();
Note:
See TracChangeset
for help on using the changeset viewer.