All of lore.kernel.org
 help / color / mirror / Atom feed
* [Accel-config] [PATCH 2/2] accel-config: Fix an incorrect error message related to engine->group-id
@ 2021-03-12  1:47 ramesh.thomas
  0 siblings, 0 replies; only message in thread
From: ramesh.thomas @ 2021-03-12  1:47 UTC (permalink / raw)
  To: accel-config

[-- Attachment #1: Type: text/plain, Size: 851 bytes --]

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-12  1:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12  1:47 [Accel-config] [PATCH 2/2] accel-config: Fix an incorrect error message related to engine->group-id ramesh.thomas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.