[Accel-config] [PATCH 2/2] accel-config: Fix an incorrect error message related to engine->group-id

ramesh.thomas at intel.com
Newsgroups dev.linux.lists.accel-config
Message-ID <[email protected]>
From: Ramesh Thomas <ramesh.thomas(a)intel.com>

Error message for invalid group ids incorrectly mentioned "engine id"

Signed-off-by: Ramesh Thomas <ramesh.thomas(a)intel.com>
---
 accfg/config_attr.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/accfg/config_attr.c b/accfg/config_attr.c
index 1f884fd..a9a405a 100644
--- a/accfg/config_attr.c
+++ b/accfg/config_attr.c
@@ -262,8 +262,9 @@ static int accel_config_parse_engine_attribs(struct accfg_device *device,
 	max_groups = accfg_device_get_max_groups(device);
 
 	if (engine_params->group_id >= max_groups) {
-		fprintf(stderr, "valid engine_id should be 0 to %d\n",
-				max_groups - 1);
+		fprintf(stderr,
+			"valid group id should be 0 to %d or -1 to dissociate from groups\n",
+			max_groups - 1);
 		return -EINVAL;
 	}
 
-- 
2.26.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.