improve code for log.c, if debug log is not enabled, log_printf function will do nothing.