From 27c57ec56abbd175c7a3ea7c50d85e91e1940c87 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 21 Jan 2013 23:08:43 -0800 Subject: Combine usage messages into a single string Signed-off-by: Alan Coopersmith --- xdpyinfo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xdpyinfo.c b/xdpyinfo.c index c08748c..26bb0fb 100644 --- a/xdpyinfo.c +++ b/xdpyinfo.c @@ -1439,11 +1439,11 @@ print_marked_extensions(Display *dpy) static void _X_NORETURN usage(void) { - fprintf (stderr, "usage: %s [options]\n", ProgramName); - fprintf (stderr, "-display displayname\tserver to query\n"); - fprintf (stderr, "-queryExtensions\tprint info returned by XQueryExtension\n"); - fprintf (stderr, "-ext all\t\tprint detailed info for all supported extensions\n"); - fprintf (stderr, "-ext extension-name\tprint detailed info for extension-name if one of:\n "); + fprintf (stderr, "usage: %s [options]\n%s", ProgramName, + "-display displayname\tserver to query\n" + "-queryExtensions\tprint info returned by XQueryExtension\n" + "-ext all\t\tprint detailed info for all supported extensions\n" + "-ext extension-name\tprint detailed info for extension-name if one of:\n "); print_known_extensions(stderr); fprintf (stderr, "\n"); exit (1); -- cgit v1.2.3