1 #pragma once 2 3 #include <inttypes.h> 4 5 #include <clog.h> 6 7 #define CPUINFO_LOG_DEBUG_PARSERS 0 8 9 #ifndef CPUINFO_LOG_LEVEL 10 #define CPUINFO_LOG_LEVEL CLOG_ERROR 11 #endif 12 13 CLOG_DEFINE_LOG_DEBUG(cpuinfo_log_debug, "cpuinfo", CPUINFO_LOG_LEVEL); 14 CLOG_DEFINE_LOG_INFO(cpuinfo_log_info, "cpuinfo", CPUINFO_LOG_LEVEL); 15 CLOG_DEFINE_LOG_WARNING(cpuinfo_log_warning, "cpuinfo", CPUINFO_LOG_LEVEL); 16 CLOG_DEFINE_LOG_ERROR(cpuinfo_log_error, "cpuinfo", CPUINFO_LOG_LEVEL); 17 CLOG_DEFINE_LOG_FATAL(cpuinfo_log_fatal, "cpuinfo", CPUINFO_LOG_LEVEL); 18