From 3b0a8fdb191309652e71e104a8f3705d55a93d3e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 10 Oct 2018 20:12:28 +0200 Subject: [PATCH] com_select(): Improve message. Let's be gramatically correct and omit the plural "s" if there is only one admissible file. --- afs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/afs.c b/afs.c index 4fe2140b..d9cddeb8 100644 --- a/afs.c +++ b/afs.c @@ -589,8 +589,9 @@ static int com_select_callback(struct afs_callback_arg *aca) para_printf(&aca->pbout, "activating dummy mood\n"); activate_mood_or_playlist(NULL, &num_admissible, NULL); out: - para_printf(&aca->pbout, "activated %s (%d admissible files)\n", - current_mop? current_mop : "dummy mood", num_admissible); + para_printf(&aca->pbout, "activated %s (%d admissible file%s)\n", + current_mop? current_mop : "dummy mood", num_admissible, + num_admissible == 1? "" : "s"); free_lpr: lls_free_parse_result(aca->lpr, cmd); return ret; -- 2.39.5