From a87268d62e6d1590e98739ddffda191c388d4ad7 Mon Sep 17 00:00:00 2001 From: Michael Holzheu Date: Thu, 4 Oct 2018 18:28:56 +0200 Subject: [PATCH] util_path_example: Fix usage message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document that for the "sysfs" invocation the mount point is optional. Signed-off-by: Michael Holzheu Signed-off-by: Jan Höppner --- libutil/util_path_example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libutil/util_path_example.c b/libutil/util_path_example.c index 2153d972..4a88e5e2 100644 --- a/libutil/util_path_example.c +++ b/libutil/util_path_example.c @@ -90,7 +90,7 @@ static void test_util_path_is_xxx(void) } /* - * Usage: util_path_example [sysfs mount point] | "is_xxx" + * Usage: util_path_example sysfs [MOUNT_POINT] | is_xxx */ int main(int argc, char *argv[]) { @@ -111,6 +111,6 @@ int main(int argc, char *argv[]) } return EXIT_SUCCESS; out_fail: - errx(EXIT_FAILURE, "Usage: %s sysfs | is_xxx", argv[0]); + errx(EXIT_FAILURE, "Usage: %s sysfs [MOUNT_POINT] | is_xxx", argv[0]); } //! [code]