1/* 2 * Copyright 2017, Data61 3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4 * ABN 41 687 119 230. 5 * 6 * This software may be distributed and modified according to the terms of 7 * the BSD 2-Clause license. Note that NO WARRANTY is provided. 8 * See "LICENSE_BSD2.txt" for details. 9 * 10 * @TAG(DATA61_BSD) 11 */ 12 13#pragma once 14 15#include <assert.h> 16#include <autoconf.h> 17#include <utils/gen_config.h> 18#include <stdbool.h> 19 20#include <utils/ansi.h> 21#include <utils/arith.h> 22#include <utils/assume.h> 23#include <utils/attribute.h> 24#include <utils/auto.h> 25#include <utils/builtin.h> 26#include <utils/compile_time.h> 27#include <utils/config.h> 28#include <utils/debug.h> 29#include <utils/fence.h> 30#include <utils/force.h> 31#include <utils/formats.h> 32#include <utils/frequency.h> 33#include <utils/list.h> 34#include <utils/math.h> 35#include <utils/page.h> 36#include <utils/print.h> 37#include <utils/sglib.h> 38#include <utils/stringify.h> 39#include <utils/stack.h> 40#include <utils/time.h> 41#include <utils/ud.h> 42#include <utils/xml.h> 43 44#ifndef ZF_LOG_LEVEL 45#ifdef _ZF_LOG_LEVEL 46#warning "Attempted to set ZF_LOG_LEVEL but _ZF_LOG_LEVEL has already been defined." \ 47"Check that <utils/zf_log.h> hasn't been imported before this file, or define ZF_LOG_LEVEL explicitly before including <utils/zf_log.h>." 48#endif 49#define ZF_LOG_LEVEL CONFIG_LIB_UTILS_DEFAULT_ZF_LOG_LEVEL 50#endif /* ZF_LOG_LEVEL */ 51 52#include <utils/zf_log.h> 53#include <utils/zf_log_if.h> 54 55/* deprecated, use the following instead: 56 * 57 * ZF_LOGV -- verbose 58 * ZF_LOGD -- debug 59 * ZF_LOGI -- info 60 * ZF_LOGW -- warning 61 * ZF_LOGE -- error 62 * ZF_LOGF -- fatal 63 * 64 * setting ZF_LOG_LEVEL to ZF_LOG_VERBOSE will display 65 * all ZF_LOG output, settings it to ZF_LOG_FATAL will 66 * only display fatal outputs. 67 */ 68#define LOG_ERROR(args...) ZF_LOGE(args) 69#define LOG_INFO(args...) ZF_LOGI(args) 70