Changeset 40810 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Apr 6, 2012 11:04:11 PM (13 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp
r40798 r40810 680 680 int rc; 681 681 682 SUPR0Printf("SUPR0TracerRegisterModule: %p\n", pVtgHdr); 683 682 684 /* 683 685 * Validate input and context. … … 702 704 703 705 rc = supdrvTracerRegisterVtgObj(pDevExt, pVtgHdr, cbVtgObj, pImage, NULL, pImage->szName); 706 SUPR0Printf("SUPR0TracerRegisterModule: rc=%d\n", rc); 704 707 705 708 /* -
trunk/src/VBox/HostDrivers/Support/testcase/tstSupLoadModule.cpp
r38636 r40810 54 54 static const RTGETOPTDEF s_aOptions[] = 55 55 { 56 { "-- help", 'h', RTGETOPT_REQ_NOTHING } /* (dummy entry) */56 { "--keep", 'k', RTGETOPT_REQ_NOTHING } 57 57 }; 58 59 bool fKeepLoaded = false; 58 60 59 61 int ch; … … 78 80 RTPrintf("Loaded '%s' at %p\n", ValueUnion.psz, pvImageBase); 79 81 80 rc = SUPR3FreeModule(pvImageBase); 81 if (RT_FAILURE(rc)) 82 if (!fKeepLoaded) 82 83 { 83 RTMsgError("%Rrc when attempting to load '%s'\n", rc, ValueUnion.psz); 84 return 1; 84 rc = SUPR3FreeModule(pvImageBase); 85 if (RT_FAILURE(rc)) 86 { 87 RTMsgError("%Rrc when attempting to load '%s'\n", rc, ValueUnion.psz); 88 return 1; 89 } 85 90 } 86 91 break; 87 92 } 93 94 case 'k': 95 fKeepLoaded = true; 96 break; 88 97 89 98 case 'h':
Note:
See TracChangeset
for help on using the changeset viewer.