[ofw] RE: [ofa-general] PATCH[2/6] Windows port of libibmad - dump.c

Sean Hefty sean.hefty at intel.com
Thu Dec 18 19:00:00 PST 2008


>Did he reimplement IBWARN, IBPANIC, and all the sys_read_* functions?  I think
>those come from ibcommon and are used by the diags.

He added this to mad.h:

#if !defined(IBWARN) 
#define IBWARN(fmt, ...) cl_msg_out(fmt, ## __VA_ARGS__)
#endif 
#if !defined(IBPANIC)
#define IBPANIC(fmt, ...) \
{ \
        cl_msg_out(fmt, ## __VA_ARGS__); \
        CL_ASSERT(0); \
}
#endif

This allows libibcommon to exist on Linux, but eliminates it for Windows - for
the diags.  (The diags don't use sys_read_*.)  I think this implementation
requires a specific include order of header files though.

- Sean 




More information about the ofw mailing list