From 9a66df810280094e35d953db86199bc48d617122 Mon Sep 17 00:00:00 2001 From: Rui Chang Date: Tue, 29 Dec 2020 11:01:12 +0800 Subject: [PATCH] lib/event: Fix no error info problem when reading spdk_tgt json file When start spdk_tgt with json config file, if the file cannot be read, there is no error message indicating what is wrong. Change-Id: I4e0cbad5fb7a23b99f05ebdce7d0801eebbd63f7 Signed-off-by: Rui Chang Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6042 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu Reviewed-by: Tomasz Zawadzki --- lib/event/json_config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/event/json_config.c b/lib/event/json_config.c index c5e1a43fe..67890ded4 100644 --- a/lib/event/json_config.c +++ b/lib/event/json_config.c @@ -527,6 +527,7 @@ app_json_config_read(const char *config_file, struct load_json_config_ctx *ctx) json = read_file(config_file, &json_size); if (!json) { + SPDK_ERRLOG("Read JSON configuration file %s failed\n", config_file); return -errno; }