Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/microcode/cyclades-z More-properly quote multiline s...



details:   https://anonhg.NetBSD.org/src/rev/a4024f8d3d33
branches:  trunk
changeset: 777869:a4024f8d3d33
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Mar 08 16:35:53 2012 +0000

description:
More-properly quote multiline string containing C-style multiline comment.

diffstat:

 sys/dev/microcode/cyclades-z/cyzfirm2h.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (41 lines):

diff -r cb9abbc3c8f8 -r a4024f8d3d33 sys/dev/microcode/cyclades-z/cyzfirm2h.c
--- a/sys/dev/microcode/cyclades-z/cyzfirm2h.c  Thu Mar 08 16:33:45 2012 +0000
+++ b/sys/dev/microcode/cyclades-z/cyzfirm2h.c  Thu Mar 08 16:35:53 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cyzfirm2h.c,v 1.6 2009/03/18 10:22:41 cegger Exp $     */
+/*     $NetBSD: cyzfirm2h.c,v 1.7 2012/03/08 16:35:53 jakllsch Exp $   */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: cyzfirm2h.c,v 1.6 2009/03/18 10:22:41 cegger Exp $");
+__RCSID("$NetBSD: cyzfirm2h.c,v 1.7 2012/03/08 16:35:53 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/mman.h>
@@ -99,14 +99,14 @@
                err(1, "unable to mmap input file");
        (void) close(i);
 
-       fprintf(out_file, "/*\t$NetBSD: cyzfirm2h.c,v 1.6 2009/03/18 10:22:41 cegger Exp $\t*/\n\n");
-       fprintf(out_file, "\
-/*
- * Firmware for Cyclades Z series multiport serial boards.
- * Automatically generated from:
- *
- *     %s
- */\n\n", argv[1]);
+       fprintf(out_file, "/*\t$NetBSD: cyzfirm2h.c,v 1.7 2012/03/08 16:35:53 jakllsch Exp $\t*/\n\n");
+       fprintf(out_file,
+           "/*\n"
+           " * Firmware for Cyclades Z series multiport serial boards.\n"
+           " * Automatically generated from:\n"
+           " *\n"
+           " *\t%s\n"
+           " */\n\n", argv[1]);
        fprintf(out_file, "#ifndef _%s_\n", include_name);
        fprintf(out_file, "#define\t_%s_\n\n", include_name);
 



Home | Main Index | Thread Index | Old Index