Skip to content

Commit 635df6a

Browse files
committed
usb: Suggest LIBUSB_DEBUG=3 for troubleshooting
LIBUSB_DEBUG=4 is too verbose and mostly useless.
1 parent da9e989 commit 635df6a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Windows 7 does not have great USB 3.0 drivers. In our testing the above known wo
7676

7777
Disabling USB selective suspend/autosuspend might be helpful to ameliorate transfer problems.
7878

79-
When you report USB issues, please attach relevant debug log from running the program with environment variable `LIBUSB_DEBUG=4`, and relevant log from `dmesg`.
79+
When you report USB issues, please attach relevant debug log from running the program with environment variable `LIBUSB_DEBUG=3`, and relevant log from `dmesg`.
8080

8181
### I'm seeing the color camera stream, but no depth/IR (black windows).
8282

src/transfer_pool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void TransferPool::submit(size_t num_parallel_transfers)
108108
}
109109

110110
if (failcount == num_parallel_transfers)
111-
LOG_ERROR << "all submissions failed. Try debugging with environment variable: LIBUSB_DEBUG=4.";
111+
LOG_ERROR << "all submissions failed. Try debugging with environment variable: LIBUSB_DEBUG=3.";
112112
}
113113

114114
void TransferPool::cancel()

src/usb_control.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ UsbControl::~UsbControl()
190190
}
191191

192192
#define CHECK_LIBUSB_RESULT(__CODE, __RESULT) if((__CODE = (__RESULT == LIBUSB_SUCCESS ? Success : Error)) == Error) LOG_ERROR
193-
#define WRITE_LIBUSB_ERROR(__RESULT) libusb_error_name(__RESULT) << " " << libusb_strerror((libusb_error)__RESULT) << ". Try debugging with environment variable: export LIBUSB_DEBUG=4 ."
193+
#define WRITE_LIBUSB_ERROR(__RESULT) libusb_error_name(__RESULT) << " " << libusb_strerror((libusb_error)__RESULT) << ". Try debugging with environment variable: export LIBUSB_DEBUG=3 ."
194194

195195
UsbControl::ResultCode UsbControl::setConfiguration()
196196
{

0 commit comments

Comments
 (0)