Le 19/07/2014 20:04, Christophe JAILLET a écrit :

I was wondering if logged message, at least APLOG_ERR or APLOG_EMERG and APLOG_CRIT, should all have a corresponding APLOGNO()?


While updating code for that, I came across APLOG_NOERRNO which is defined as:

/* APLOG_NOERRNO is ignored and should not be used.  It will be
 * removed in a future release of Apache.
 */
#define APLOG_NOERRNO           (APLOG_LEVELMASK + 1)

The only use of it is in mod_macro. (+ only one use in coe.c)


Why should it be removed in the future? Isn't it useful to self document the code when, for any reason, no APLOGNO should be appended ?

Best regards,
CJ

Reply via email to