+1
−4
Loading
When config entry fails spdk_json_decode_object(), that basically means incorrectly formatted JSON config. Decode object is simple enough here - 'method' and optional 'params'. Before this change SPDK_ERRLOG printed garbage, rather than JSON object that failed the decode. We actually should not do it at all: - the object is not formatted right already - it might be the last object, so spdk_json_next() won't work It was not usefull, so this patch removes it. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Ife67ac0d9a1a66d567bfbdd5896e893f3e8cb3ca Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3257 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>