From c680a792371d6cd853b2bd68d4bec74e33090ceb Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Wed, 29 May 2019 14:37:27 -0700 Subject: [PATCH] json_util: fix typo in debug message. We were printing out the wrong value here. Change-Id: I7b5f4eaca41317a69167ad5413a1b1913e9c0842 Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456278 Reviewed-by: Jim Harris Reviewed-by: Paul Luse Reviewed-by: Darek Stojaczyk Tested-by: SPDK CI Jenkins --- lib/json/json_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/json/json_util.c b/lib/json/json_util.c index 1f3d0846e..f8103f346 100644 --- a/lib/json/json_util.c +++ b/lib/json/json_util.c @@ -576,7 +576,7 @@ spdk_json_skip_object_or_array(struct spdk_json_val *val) end_type = SPDK_JSON_VAL_ARRAY_END; } else { SPDK_JSON_DEBUG("Expected JSON object (%#x) or array (%#x) but got %#x\n", - SPDK_JSON_VAL_OBJECT_BEGIN, SPDK_JSON_VAL_ARRAY_END, val->type); + SPDK_JSON_VAL_OBJECT_BEGIN, SPDK_JSON_VAL_ARRAY_BEGIN, val->type); return NULL; }