Changeset 59686 in vbox for trunk/src/VBox/Devices/USB
- Timestamp:
- Feb 15, 2016 5:01:24 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 105543
- Location:
- trunk/src/VBox/Devices/USB
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/VUSBSniffer.cpp
r59633 r59686 159 159 if (RT_SUCCESS(rc)) 160 160 { 161 rc = RTFileOpen(&pThis->hFile, pszCaptureFilename, RTFILE_O_DENY_NONE | RTFILE_O_CREATE_REPLACE | RTFILE_O_WRITE | RTFILE_O_READ); 161 uint32_t fFileFlags = RTFILE_O_DENY_NONE | RTFILE_O_WRITE | RTFILE_O_READ; 162 if (fFlags & VUSBSNIFFER_F_NO_REPLACE) 163 fFileFlags |= RTFILE_O_CREATE; 164 else 165 fFileFlags |= RTFILE_O_CREATE_REPLACE; 166 167 rc = RTFileOpen(&pThis->hFile, pszCaptureFilename, fFileFlags); 162 168 if (RT_SUCCESS(rc)) 163 169 { -
trunk/src/VBox/Devices/USB/VUSBSniffer.h
r59615 r59686 52 52 } VUSBSNIFFEREVENT; 53 53 54 /** VUSB Sniffer creation flags. 55 * @{ */ 56 /** Default flags. */ 57 #define VUSBSNIFFER_F_DEFAULT 0 58 /** Don't overwrite any existing capture file. */ 59 #define VUSBSNIFFER_F_NO_REPLACE RT_BIT_32(0) 60 /** @} */ 61 54 62 /** 55 63 * Create a new VUSB sniffer instance dumping to the given capture file. … … 57 65 * @returns VBox status code. 58 66 * @param phSniffer Where to store the handle to the sniffer instance on success. 59 * @param fFlags Flags, reserved, must be 0.67 * @param fFlags Flags, combination of VUSBSNIFFER_F_* 60 68 * @param pszCaptureFilename The filename to use for capturing the sniffed data. 61 69 * @param pszFmt The format of the dump, NULL to select one based on the filename -
trunk/src/VBox/Devices/USB/VUSBSnifferUsbMon.cpp
r59633 r59686 88 88 { 89 89 char aszLineBuf[512]; 90 char chEvtType ;91 char chDir ;92 char chEptType ;90 char chEvtType = 'X'; 91 char chDir = 'X'; 92 char chEptType = 'X'; 93 93 94 94 switch (enmEvent)
Note:
See TracChangeset
for help on using the changeset viewer.