From 8da61292f595c5e700a4fef981b0e0d07910b4b2 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 30 Apr 2015 19:51:49 +0200 Subject: Provide an interface for logging debug messages --- pcilib/pcilib.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pcilib/pcilib.h') diff --git a/pcilib/pcilib.h b/pcilib/pcilib.h index 232daf8..f5853d3 100644 --- a/pcilib/pcilib.h +++ b/pcilib/pcilib.h @@ -23,9 +23,10 @@ typedef unsigned int pcilib_irq_hw_source_t; typedef uint32_t pcilib_irq_source_t; typedef enum { - PCILIB_LOG_INFO, - PCILIB_LOG_WARNING, - PCILIB_LOG_ERROR + PCILIB_LOG_DEBUG = 0, /**< Debug messages will be always printed as they should be filtered based on setting of corresponding environmental variable */ + PCILIB_LOG_INFO, /**< Informational message are suppresed by default */ + PCILIB_LOG_WARNING, /**< Warnings messages indicate that something unexpected happen, but application can continue */ + PCILIB_LOG_ERROR /**< The error which is impossible to handle on this level of library */ } pcilib_log_priority_t; typedef enum { -- cgit v1.2.3