From 7e7cf1926d3159d32caeb1ebdeaebd9ddf1a83bd Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 18 Apr 2021 22:23:01 +0200 Subject: Use the suitable macro for error messages. --- src/plugins/pglist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v0.11.2-87-g4458