From 442ef5cedfb4de0126a4af6c215f55740cf02a6d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 25 Mar 2018 13:10:56 +0200 Subject: Service command list fixup Decode the target, no the type (and print the correct error message). Signed-off-by: David Oberhollenzer --- servicecmd/list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servicecmd/list.c b/servicecmd/list.c index 07153f2..73e1aae 100644 --- a/servicecmd/list.c +++ b/servicecmd/list.c @@ -60,11 +60,11 @@ static int cmd_list(int argc, char **argv) } if (argc == 2) { - i = svc_type_from_string(argv[1]); + i = svc_target_from_string(argv[1]); if (i == -1) { fprintf(stderr, "Unknown target `%s'\n", argv[1]); - tell_read_help(argv[1]); + tell_read_help(argv[0]); ret = EXIT_FAILURE; goto out; } -- cgit v1.2.3