[ofw] [OPENSM] use standard varargs syntax in macro OSM_LOG()
Stan C. Smith
stan.smith at intel.com
Mon Sep 28 16:50:53 PDT 2009
Signed-off-by: Stan Smith (stan.smith at intel.com)
diff --git a/opensm/include/opensm/osm_log.h b/opensm/include/opensm/osm_log.h
index 20999d9..135e752 100644
--- a/opensm/include/opensm/osm_log.h
+++ b/opensm/include/opensm/osm_log.h
@@ -390,10 +390,10 @@ extern void osm_log_msg_box(osm_log_t *log, osm_log_level_t level,
extern void osm_log_raw(IN osm_log_t * const p_log,
IN const osm_log_level_t verbosity, IN const char *p_buf);
-#define OSM_LOG(log, level, fmt, arg...) do { \
- if (osm_log_is_active(log, (level))) \
- osm_log(log, level, "%s: " fmt, __func__, ##arg); \
- } while (0)
+#define OSM_LOG(log, level, fmt, ...) do { \
+ if (osm_log_is_active(log, (level))) \
+ osm_log(log, level, "%s: " fmt, __func__, ## __VA_ARGS__); \
+} while (0)
#define OSM_LOG_MSG_BOX(log, level, msg) \
osm_log_msg_box(log, level, __func__, msg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inc_opensm.pat
Type: application/octet-stream
Size: 811 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090928/159d71fc/attachment.obj>
More information about the ofw
mailing list