summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPete Batard <pete@akeo.ie>2012-07-02 23:39:19 +0100
committerPete Batard <pete@akeo.ie>2012-07-03 11:01:41 +0100
commit7ec94a45ed8155e7a1d4d5d75575099b09c78834 (patch)
treeac57151fceac382b0e80567f2563bb44efb88e91 /examples
parent63f569be66a40a720bb797a87c3589f3e4de925a (diff)
downloadlibusbx-7ec94a45ed8155e7a1d4d5d75575099b09c78834.tar.gz
Core: Prefix LOG_LEVEL_ with LIBUSB_ to avoid conflictsbaserock/morph
* The LOG_LEVEL_ enums, that were moved to the public API in 933a319469bcccc962031c989e39d9d1f44f2885 may conflict with applications/headers that also define their own LOG_LEVEL_ values internally. * As a matter of fact, as per Trac #31, this produces a conflict with libusb-compat, as it defines its own levels.
Diffstat (limited to 'examples')
-rw-r--r--examples/xusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xusb.c b/examples/xusb.c
index 0eafd8c..3e8d262 100644
--- a/examples/xusb.c
+++ b/examples/xusb.c
@@ -1021,7 +1021,7 @@ int main(int argc, char** argv)
if (r < 0)
return r;
- libusb_set_debug(NULL, debug_mode?LOG_LEVEL_DEBUG:LOG_LEVEL_INFO);
+ libusb_set_debug(NULL, debug_mode?LIBUSB_LOG_LEVEL_DEBUG:LIBUSB_LOG_LEVEL_INFO);
test_device(VID, PID);