Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions core/src/drivers/plugin_config.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "plugin_config.h"
#include "../plc_app/utils/log.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -72,7 +73,7 @@ int parse_plugin_config(const char *config_file, plugin_config_t *configs, int m
token = strtok(NULL, ",");
if (token && strlen(token) > 0)
{
printf("[PLUGIN_CONFIG]: Found config_path: '%s'\n", token);
log_debug("Found config_path: '%s'", token);
strncpy(configs[config_count].plugin_related_config_path, token,
sizeof(configs[config_count].plugin_related_config_path) - 1);
configs[config_count]
Expand All @@ -82,7 +83,7 @@ int parse_plugin_config(const char *config_file, plugin_config_t *configs, int m
}
else
{
printf("[PLUGIN_CONFIG]: No config_path found, using empty string\n");
log_debug("No config_path found, using empty string");
// No config path specified, use empty string
configs[config_count].plugin_related_config_path[0] = '\0';
}
Expand Down
Loading
Loading