[PATCH:xcmsdb 1/6] Combine usage message strings

Alan Coopersmith alan.coopersmith at oracle.com
Tue Nov 26 21:45:13 PST 2013


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 xcmsdb.c |   22 +++++++---------------
 1 file changed, 7 insertions(+), 15 deletions(-)

diff --git a/xcmsdb.c b/xcmsdb.c
index 255b449..548c9b3 100644
--- a/xcmsdb.c
+++ b/xcmsdb.c
@@ -59,25 +59,17 @@ static void
 Syntax (void)
 {
     fprintf (stderr, 
-	     "usage:  %s [-options ...] [filename]\n\n",
-	     ProgramName);
-    fprintf (stderr, 
-	     "where options include:\n");
-    fprintf (stderr, 
-	     "    -display host:dpy[.scrn]     display to use\n");
-    fprintf (stderr, 
-	     "    -format [ 32 | 16 | 8 ]      property format\n");
-    fprintf (stderr, 
-	     "    -query                       query Screen Color Characterization Data\n");
-    fprintf (stderr, 
-	     "    -remove                      remove Screen Color Characterization Data\n");
+	     "usage:  %s [-options ...] [filename]\n\n%s",
+	     ProgramName,
+	     "where options include:\n"
+	     "    -display host:dpy[.scrn]     display to use\n"
+	     "    -format [ 32 | 16 | 8 ]      property format\n"
+	     "    -query                       query Screen Color Characterization Data\n"
+	     "    -remove                      remove Screen Color Characterization Data\n"
 #ifdef GRAY
-    fprintf (stderr, 
 	     "    -color                       use color as default\n");
-    fprintf (stderr, 
 	     "    -gray                        use gray-scale as default\n");
 #endif /* GRAY */
-    fprintf (stderr, 
 	     "\n");
     exit (1);
 }
-- 
1.7.9.2



More information about the xorg-devel mailing list