- Timestamp:
- May 23, 2012 9:45:54 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDevTesting.cpp
r40280 r41413 38 38 39 39 #ifndef VBOX_WITHOUT_TESTING_FEATURES 40 41 #define VMMDEV_TESTING_OUTPUT(a) \ 42 do \ 43 { \ 44 LogAlways(a);\ 45 LogRel(a);\ 46 RTPrintf a; \ 47 } while (0) 40 48 41 49 /** … … 165 173 { 166 174 case VMMDEV_TESTING_CMD_INIT: 167 RTPrintf("testing: INIT '%.*s'\n", sizeof(pThis->TestingData.String.sz) - 1, pThis->TestingData.String.sz); 175 VMMDEV_TESTING_OUTPUT(("testing: INIT '%.*s'\n", 176 sizeof(pThis->TestingData.String.sz) - 1, pThis->TestingData.String.sz)); 168 177 break; 169 178 case VMMDEV_TESTING_CMD_SUB_NEW: 170 RTPrintf("testing: SUB_NEW '%.*s'\n", sizeof(pThis->TestingData.String.sz) - 1, pThis->TestingData.String.sz); 179 VMMDEV_TESTING_OUTPUT(("testing: SUB_NEW '%.*s'\n", 180 sizeof(pThis->TestingData.String.sz) - 1, pThis->TestingData.String.sz)); 171 181 break; 172 182 case VMMDEV_TESTING_CMD_FAILED: 173 RTPrintf("testing: FAILED '%.*s'\n", sizeof(pThis->TestingData.String.sz) - 1, pThis->TestingData.String.sz); 183 VMMDEV_TESTING_OUTPUT(("testing: FAILED '%.*s'\n", 184 sizeof(pThis->TestingData.String.sz) - 1, pThis->TestingData.String.sz)); 174 185 break; 175 186 } … … 190 201 pThis->TestingData.Error.c = u32; 191 202 if (uCmd == VMMDEV_TESTING_CMD_TERM) 192 RTPrintf("testing: TERM - %u errors\n", u32);193 else 194 RTPrintf("testing: SUB_DONE - %u errors\n", u32);203 VMMDEV_TESTING_OUTPUT(("testing: TERM - %u errors\n", u32)); 204 else 205 VMMDEV_TESTING_OUTPUT(("testing: SUB_DONE - %u errors\n", u32)); 195 206 return VINF_SUCCESS; 196 207 #else … … 226 237 { 227 238 #ifdef IN_RING3 228 RTPrintf("testing: VALUE '%.*s'%*s: %'9llu (%#llx) [%u]\n",229 sizeof(pThis->TestingData.Value.szName) - 1, pThis->TestingData.Value.szName,230 off - 12 > 48 ? 0 : 48 - (off - 12), "",231 pThis->TestingData.Value.u64Value.u, pThis->TestingData.Value.u64Value.u,232 pThis->TestingData.Value.u32Unit);239 VMMDEV_TESTING_OUTPUT(("testing: VALUE '%.*s'%*s: %'9llu (%#llx) [%u]\n", 240 sizeof(pThis->TestingData.Value.szName) - 1, pThis->TestingData.Value.szName, 241 off - 12 > 48 ? 0 : 48 - (off - 12), "", 242 pThis->TestingData.Value.u64Value.u, pThis->TestingData.Value.u64Value.u, 243 pThis->TestingData.Value.u32Unit)); 233 244 #else 234 245 return VINF_IOM_R3_IOPORT_WRITE; … … 240 251 pThis->TestingData.Error.c = u32; 241 252 if (uCmd == VMMDEV_TESTING_CMD_TERM) 242 RTPrintf("testing: TERM - %u errors\n", u32);243 else 244 RTPrintf("testing: SUB_DONE - %u errors\n", u32);253 VMMDEV_TESTING_OUTPUT(("testing: TERM - %u errors\n", u32)); 254 else 255 VMMDEV_TESTING_OUTPUT(("testing: SUB_DONE - %u errors\n", u32)); 245 256 return VINF_SUCCESS; 246 257 #else
Note:
See TracChangeset
for help on using the changeset viewer.