From 4d9bd786bef0f8bbd4a91f59173a9de73af64440 Mon Sep 17 00:00:00 2001 From: Thomas Hurst Date: Sat, 22 Feb 2020 00:44:27 +0000 Subject: [PATCH] Send usage to stderr and ask what our name is --- checkrestart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkrestart.c b/checkrestart.c index e0664c4..ad8ba6a 100644 --- a/checkrestart.c +++ b/checkrestart.c @@ -23,7 +23,7 @@ static int termwidth = 0; static void usage(void) { - printf("usage: checkrestart [-bHw] [pid [pid ...]]\n"); + fprintf(stderr, "usage: %s [-bHw] [pid [pid ...]]\n", getprogname()); exit(EXIT_FAILURE); }