mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-24 02:14:11 +08:00
Remove config.h inclusion in debug.h
* update msusb to use DEBUG_MSUSB * remove unused DEBUG_MSG
This commit is contained in:
parent
5202e6384f
commit
0cb7874749
@ -20,10 +20,6 @@
|
|||||||
#ifndef FREERDP_UTILS_DEBUG_H
|
#ifndef FREERDP_UTILS_DEBUG_H
|
||||||
#define FREERDP_UTILS_DEBUG_H
|
#define FREERDP_UTILS_DEBUG_H
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DEBUG_NULL(fmt, ...) do { } while (0)
|
#define DEBUG_NULL(fmt, ...) do { } while (0)
|
||||||
|
|
||||||
/* When building for android redirect all debug messages
|
/* When building for android redirect all debug messages
|
||||||
@ -61,10 +57,4 @@
|
|||||||
#define DEBUG_WARN(fmt, ...) DEBUG_PRINT("Warning %s (%s:%d): ", fmt, ## __VA_ARGS__)
|
#define DEBUG_WARN(fmt, ...) DEBUG_PRINT("Warning %s (%s:%d): ", fmt, ## __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_DEBUG
|
|
||||||
#define DEBUG_MSG(fmt, ...) DEBUG_PRINT("DBG %s (%s:%d): ", fmt, ## __VA_ARGS__)
|
|
||||||
#else
|
|
||||||
#define DEBUG_MSG(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* FREERDP_UTILS_DEBUG_H */
|
#endif /* FREERDP_UTILS_DEBUG_H */
|
||||||
|
@ -25,6 +25,13 @@
|
|||||||
#include <freerdp/utils/debug.h>
|
#include <freerdp/utils/debug.h>
|
||||||
#include <freerdp/utils/msusb.h>
|
#include <freerdp/utils/msusb.h>
|
||||||
|
|
||||||
|
#ifdef WITH_DEBUG_MSUSB
|
||||||
|
#define DEBUG_MSUSB(fmt, ...) DEBUG_CLASS(MSUSB, fmt, ## __VA_ARGS__)
|
||||||
|
#else
|
||||||
|
#define DEBUG_MSUSB(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static MSUSB_PIPE_DESCRIPTOR* msusb_mspipe_new()
|
static MSUSB_PIPE_DESCRIPTOR* msusb_mspipe_new()
|
||||||
{
|
{
|
||||||
MSUSB_PIPE_DESCRIPTOR* MsPipe = (MSUSB_PIPE_DESCRIPTOR*) malloc(sizeof(MSUSB_PIPE_DESCRIPTOR));
|
MSUSB_PIPE_DESCRIPTOR* MsPipe = (MSUSB_PIPE_DESCRIPTOR*) malloc(sizeof(MSUSB_PIPE_DESCRIPTOR));
|
||||||
@ -285,7 +292,7 @@ MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_read(BYTE* data, UINT32 data_size, UINT3
|
|||||||
|
|
||||||
if (lenConfiguration != 0x9 || typeConfiguration != 0x2)
|
if (lenConfiguration != 0x9 || typeConfiguration != 0x2)
|
||||||
{
|
{
|
||||||
DEBUG_MSG("%s: len and type must be 0x9 and 0x2 , but it is 0x%x and 0x%x",
|
DEBUG_MSUSB("%s: len and type must be 0x9 and 0x2 , but it is 0x%x and 0x%x",
|
||||||
lenConfiguration, typeConfiguration);
|
lenConfiguration, typeConfiguration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user