summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-21 23:08:43 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-21 23:08:43 -0800
commit27c57ec56abbd175c7a3ea7c50d85e91e1940c87 (patch)
tree707ce3db217dbf1fd8a7cb3b40031c6ef8a66a9a
parentf407231c855bc0349d0f8543a9dfe9dff4b2508b (diff)
Combine usage messages into a single string
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xdpyinfo.c10
1 files 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);