/* SPDX-License-Identifier: GPL-2.0 */ /* debug loglevel, gets really noisy */ #define DEBUG 1 /* still noisy, but won't fill your disk */ #define INFO 2 /* normal, but significant event */ #define NOTICE 3 /* unexpected event that can be handled */ #define WARNING 4 /* unhandled error condition */ #define ERROR 5 /* system might be unreliable */ #define CRIT 6 /* last message before exit */ #define EMERG 7 #define DSS_DEBUG_LOG(f,...) dss_log(DEBUG, "%s: " f, __FUNCTION__, ## __VA_ARGS__) #define DSS_INFO_LOG(f,...) dss_log(INFO, "%s: " f, __FUNCTION__, ## __VA_ARGS__) #define DSS_NOTICE_LOG(f,...) dss_log(NOTICE, "%s: " f, __FUNCTION__, ## __VA_ARGS__) #define DSS_WARNING_LOG(f,...) dss_log(WARNING, "%s: " f, __FUNCTION__, ## __VA_ARGS__) #define DSS_ERROR_LOG(f,...) dss_log(ERROR, "%s: " f, __FUNCTION__, ## __VA_ARGS__) #define DSS_CRIT_LOG(f,...) dss_log(CRIT, "%s: " f, __FUNCTION__, ## __VA_ARGS__) #define DSS_EMERG_LOG(f,...) dss_log(EMERG, "%s: " f, __FUNCTION__, ## __VA_ARGS__)