Double-underscores at the beginning of a token are reserved
for the compiler usage, so these values were removed. I've also
altered the names a bit to make them look different enough so that
our users don't use them.
Finally, I made sure that they don't actually WORK, so that our
users won't be tempted to use them.
Change-Id: I3ae04ff32f01dfc6e0d89948a3b5b858157de6ab
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/298
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
0 == set_module)
return 0;
- if(__OC_LOG_MIN__ > level || __OC_LOG_MAX__ < level)
+ if(OC_LOG_MIN_VAL__ >= level || OC_LOG_MAX_VAL__ <= level)
return 0;
log_ctx = (oc_log_ctx_t *)malloc(sizeof(oc_log_ctx_t));
#endif
typedef enum {
- __OC_LOG_MIN__ = -1,
+ OC_LOG_MIN_VAL__ = -1,
OC_LOG_ALL = 0,
OC_LOG_FATAL,
OC_LOG_ERROR,
OC_LOG_INFO,
OC_LOG_DEBUG,
OC_LOG_DISABLED,
- __OC_LOG_MAX__
+ OC_LOG_MAX_VAL__
} oc_log_level;
typedef struct _oc_log_ctx