[ofw] Re: [ofa-general] [ib-mgmt] ibdiag_common.h question

Sasha Khapyorsky sashak at voltaire.com
Sat Feb 14 07:28:04 PST 2009


Hi Sean,

On 16:56 Thu 12 Feb     , Sean Hefty wrote:
> I noticed the following in ibdiag_common.h:
> 
> #define	DEBUG	if (ibdebug || ibverbose) IBWARN
> #define	VERBOSE	if (ibdebug || ibverbose > 1) IBWARN
> 
> This allows for else statements to mismatch when defined.

Sure, we can wrap it with 'do { ... } while (0)'.

Sasha



More information about the ofw mailing list