From d634e66dc38f97b6697f5ec1d559f0c22aeb4c1d Mon Sep 17 00:00:00 2001 From: Mr NeilBrown Date: Wed, 18 Nov 2020 11:52:15 +1100 Subject: [PATCH] LU-13153 lib: fix llapi_get_version_string llapi_get_version_string() has always been broken as it passes args to get_lustre_param_value in the wrong order. Test-Parameters: trivial Fixes: 0c5fbd80f1ba ("LU-5969 lustreapi: replace llapi_get_version()") Signed-off-by: Mr NeilBrown Change-Id: Ib4bdd715295f97fe5b7080f42bfa06883f191234 Reviewed-on: https://review.whamcloud.com/40680 Reviewed-by: James Simmons Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/utils/liblustreapi_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/utils/liblustreapi_util.c b/lustre/utils/liblustreapi_util.c index c19674e..e8af531 100644 --- a/lustre/utils/liblustreapi_util.c +++ b/lustre/utils/liblustreapi_util.c @@ -115,8 +115,8 @@ int llapi_get_version_string(char *version, unsigned int version_size) return -1; } - rc = get_lustre_param_value(NULL, NULL, FILTER_BY_NONE, buffer, - "version", sizeof(buffer)); + rc = get_lustre_param_value(NULL, NULL, FILTER_BY_NONE, "version", + buffer, sizeof(buffer)); if (rc < 0) { errno = -rc; return -1; -- 1.8.3.1