summaryrefslogtreecommitdiffstats
path: root/pcilib/error.c
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-24 18:24:22 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-24 18:24:22 +0100
commitb0a034e6ef4a958235a56ebde0831c0f30a84d30 (patch)
treea1f46d2d536c692edd6b17efc61ac9fefef2796b /pcilib/error.c
parentda842568b94b0e00c1709ae01f441a7424c15b87 (diff)
parent3ea1907f3169e0233d3a32a7d470af3c34b6f967 (diff)
downloadpcitool-b0a034e6ef4a958235a56ebde0831c0f30a84d30.tar.gz
pcitool-b0a034e6ef4a958235a56ebde0831c0f30a84d30.tar.bz2
pcitool-b0a034e6ef4a958235a56ebde0831c0f30a84d30.tar.xz
pcitool-b0a034e6ef4a958235a56ebde0831c0f30a84d30.zip
Merge with Suren branch. Fix memory leaks.
Diffstat (limited to 'pcilib/error.c')
-rw-r--r--pcilib/error.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pcilib/error.c b/pcilib/error.c
index a2e5a04..ae8bacb 100644
--- a/pcilib/error.c
+++ b/pcilib/error.c
@@ -80,10 +80,11 @@ int pcilib_set_logger(pcilib_log_priority_t min_prio, pcilib_logger_t logger, vo
pcilib_logger_t pcilib_get_logger() {
return pcilib_logger;
}
+
pcilib_log_priority_t pcilib_get_log_level() {
- return pcilib_logger_min_prio;
+ return pcilib_logger_min_prio;
}
+
void* pcilib_get_logger_context() {
- return pcilib_logger_argument;
+ return pcilib_logger_argument;
}
-