summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-04-18 20:23:01 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-04-18 20:23:01 (GMT)
commit7e7cf1926d3159d32caeb1ebdeaebd9ddf1a83bd (patch)
treead704a9e488f66b19fd52c1a9bb9f4603bd0b3da
parent5b476b9e4774885dd403ad30d1b1212e7e03613b (diff)
Use the suitable macro for error messages.
-rw-r--r--src/plugins/pglist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/pglist.c b/src/plugins/pglist.c
index e7ca037..5f941ef 100644
--- a/src/plugins/pglist.c
+++ b/src/plugins/pglist.c
@@ -37,6 +37,7 @@
#include "plugin-int.h"
#include "../common/extstr.h"
+#include "../core/logs.h"
#include "../core/paths.h"
@@ -251,7 +252,7 @@ static void browse_directory_for_plugins(const char *dir)
ret = scandir(dir, &namelist, filter_dirs_or_mods, alphasort);
if (ret < 0)
{
- perror("scandir");
+ LOG_ERROR_N("scandir");
return;
}