mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:33:20 +00:00
[NETWORKING][CABMAN]
- Attempt to silence some 200 benign "Operands don't affect result" Coverity defects svn path=/trunk/; revision=69652
This commit is contained in:
parent
8325a50be7
commit
9b00fd4ea8
9 changed files with 45 additions and 30 deletions
|
@ -28,8 +28,9 @@
|
||||||
extern DWORD DebugTraceLevel;
|
extern DWORD DebugTraceLevel;
|
||||||
|
|
||||||
#define WS_DbgPrint(_t_, _x_) \
|
#define WS_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%hS:%d)(%hS) ", __FILE__, __LINE__, __FUNCTION__); \
|
DbgPrint("(%hS:%d)(%hS) ", __FILE__, __LINE__, __FUNCTION__); \
|
||||||
DbgPrint _x_; \
|
DbgPrint _x_; \
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,8 +22,9 @@
|
||||||
extern DWORD DebugTraceLevel;
|
extern DWORD DebugTraceLevel;
|
||||||
|
|
||||||
#define WSH_DbgPrint(_t_, _x_) \
|
#define WSH_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%hS:%d)(%hS) ", __FILE__, __LINE__, __FUNCTION__); \
|
DbgPrint("(%hS:%d)(%hS) ", __FILE__, __LINE__, __FUNCTION__); \
|
||||||
DbgPrint _x_; \
|
DbgPrint _x_; \
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,8 +26,9 @@ extern DWORD DebugTraceLevel;
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
#define AFD_DbgPrint(_t_, _x_) \
|
#define AFD_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
@ -35,8 +36,9 @@ extern DWORD DebugTraceLevel;
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
|
|
||||||
#define AFD_DbgPrint(_t_, _x_) \
|
#define AFD_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,8 +25,9 @@ extern ULONG DebugTraceLevel;
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
#define NDIS_DbgPrint(_t_, _x_) \
|
#define NDIS_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
@ -34,8 +35,9 @@ extern ULONG DebugTraceLevel;
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
|
|
||||||
#define NDIS_DbgPrint(_t_, _x_) \
|
#define NDIS_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,8 +25,9 @@ extern ULONG DebugTraceLevel;
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
#define NDIS_DbgPrint(_t_, _x_) \
|
#define NDIS_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
@ -34,8 +35,9 @@ extern ULONG DebugTraceLevel;
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
|
|
||||||
#define NDIS_DbgPrint(_t_, _x_) \
|
#define NDIS_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,8 +40,9 @@ extern DWORD DebugTraceLevel;
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
#define LA_DbgPrint(_t_, _x_) \
|
#define LA_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
@ -49,8 +50,9 @@ extern DWORD DebugTraceLevel;
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
|
|
||||||
#define LA_DbgPrint(_t_, _x_) \
|
#define LA_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,8 +26,9 @@ extern ULONG DebugTraceLevel;
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
#define NDIS_DbgPrint(_t_, _x_) \
|
#define NDIS_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
@ -35,8 +36,9 @@ extern ULONG DebugTraceLevel;
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
|
|
||||||
#define NDIS_DbgPrint(_t_, _x_) \
|
#define NDIS_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,8 +65,9 @@ extern ULONG DebugTraceLevel;
|
||||||
|
|
||||||
#undef DPRINT
|
#undef DPRINT
|
||||||
#define DPRINT(_t_, _x_) \
|
#define DPRINT(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
printf("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
printf("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
||||||
printf _x_ ; \
|
printf _x_ ; \
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,8 +28,9 @@ extern ULONG DebugTraceLevel;
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
#define TDI_DbgPrint(_t_, _x_) \
|
#define TDI_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
@ -37,8 +38,9 @@ extern ULONG DebugTraceLevel;
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
|
|
||||||
#define TDI_DbgPrint(_t_, _x_) \
|
#define TDI_DbgPrint(_t_, _x_) \
|
||||||
if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
|
if ((_t_ > NORMAL_MASK) \
|
||||||
((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
|
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||||
|
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||||
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
||||||
DbgPrint _x_ ; \
|
DbgPrint _x_ ; \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue