diff options
author | nicklas79 <nicklas79> | 2009-09-28 18:20:16 +0000 |
---|---|---|
committer | nicklas79 <nicklas79> | 2009-09-28 18:20:16 +0000 |
commit | 0358408fe9faa91c1c6737a785771dfaf691e101 (patch) | |
tree | 79fc8a6114e45b706e641173c5d1f0576c4af058 /src/libusb-glue.h | |
parent | a99196ac65e034c530ea9303c74ec8b74cb8cd19 (diff) | |
download | libmtp-0358408fe9faa91c1c6737a785771dfaf691e101.tar.gz |
Add DEBUG flags definition to be clean
See :
LIBMTP_DEBUG_NONE
LIBMTP_DEBUG_PTP
LIBMTP_DEBUG_USB
LIBMTP_DEBUG_PLST
LIBMTP_DEBUG_DATA
LIBMTP_DEBUG_ALL
Diffstat (limited to 'src/libusb-glue.h')
-rw-r--r-- | src/libusb-glue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libusb-glue.h b/src/libusb-glue.h index 862f72a..db41d83 100644 --- a/src/libusb-glue.h +++ b/src/libusb-glue.h @@ -45,13 +45,13 @@ extern "C" { */ #define LIBMTP_USB_DEBUG(format, args...) \ do { \ - if ((LIBMTP_debug & 0x04) != 0) \ + if ((LIBMTP_debug & LIBMTP_DEBUG_USB) != 0) \ fprintf(stdout, "LIBMTP %s[%d]: " format, __FUNCTION__, __LINE__, ##args); \ } while (0) #define LIBMTP_USB_DATA(buffer, length, base) \ do { \ - if ((LIBMTP_debug & 0x08) != 0) \ + if ((LIBMTP_debug & LIBMTP_DEBUG_DATA) != 0) \ data_dump_ascii (stdout, buffer, length, base); \ } while (0) |