diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-04-30 19:51:49 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-04-30 19:51:49 +0200 |
commit | 8da61292f595c5e700a4fef981b0e0d07910b4b2 (patch) | |
tree | a012e6312d95d50c3e8bd58bc972dbccdd3bd0bf /pcilib/pcilib.h | |
parent | a740fcee56bd456a759e03526df476e1791fb2bd (diff) | |
download | pcitool-8da61292f595c5e700a4fef981b0e0d07910b4b2.tar.gz pcitool-8da61292f595c5e700a4fef981b0e0d07910b4b2.tar.bz2 pcitool-8da61292f595c5e700a4fef981b0e0d07910b4b2.tar.xz pcitool-8da61292f595c5e700a4fef981b0e0d07910b4b2.zip |
Provide an interface for logging debug messages
Diffstat (limited to 'pcilib/pcilib.h')
-rw-r--r-- | pcilib/pcilib.h | 7 |
1 files changed, 4 insertions, 3 deletions
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 { |