From 43299f394db75d9f2ae09545587b76321ee87ae4 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Mon, 6 Sep 2021 04:38:34 -0400 Subject: [PATCH] lib/idxd: make errmsg of "cannot set implementation" more clear. Add more information to users which implementation cannot be set for idxd. Signed-off-by: Ziye Yang Change-Id: Ib26f117dc19fa1f28cc1d548549caba0b696a915 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9399 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Paul Luse Reviewed-by: Ben Walker Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- lib/idxd/idxd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/idxd/idxd.c b/lib/idxd/idxd.c index c826dc09b..a6b5394d5 100644 --- a/lib/idxd/idxd.c +++ b/lib/idxd/idxd.c @@ -321,7 +321,8 @@ spdk_idxd_set_config(uint32_t config_num, bool kernel_mode) } if (g_idxd_impl == NULL) { - SPDK_ERRLOG("Cannot set the idxd implementation"); + SPDK_ERRLOG("Cannot set the idxd implementation with %s mode\n", + kernel_mode ? KERNEL_DRIVER_NAME : USERSPACE_DRIVER_NAME); return; }