Conditional debug logging for C