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 Nuke trailing whitespace in out...
details: https://anonhg.NetBSD.org/src/rev/cd6bfbfe6d53
branches: trunk
changeset: 777871:cd6bfbfe6d53
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu Mar 08 16:40:37 2012 +0000
description:
Nuke trailing whitespace in output header file.
diffstat:
sys/dev/microcode/cyclades-z/cyzfirm2h.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r 67202f155c8c -r cd6bfbfe6d53 sys/dev/microcode/cyclades-z/cyzfirm2h.c
--- a/sys/dev/microcode/cyclades-z/cyzfirm2h.c Thu Mar 08 16:38:04 2012 +0000
+++ b/sys/dev/microcode/cyclades-z/cyzfirm2h.c Thu Mar 08 16:40:37 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cyzfirm2h.c,v 1.8 2012/03/08 16:38:04 jakllsch Exp $ */
+/* $NetBSD: cyzfirm2h.c,v 1.9 2012/03/08 16:40:37 jakllsch Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: cyzfirm2h.c,v 1.8 2012/03/08 16:38:04 jakllsch Exp $");
+__RCSID("$NetBSD: cyzfirm2h.c,v 1.9 2012/03/08 16:40:37 jakllsch Exp $");
#include <sys/types.h>
#include <sys/mman.h>
@@ -99,7 +99,7 @@
err(1, "unable to mmap input file");
(void) close(i);
- fprintf(out_file, "/*\t$NetBSD: cyzfirm2h.c,v 1.8 2012/03/08 16:38:04 jakllsch Exp $\t*/\n\n");
+ fprintf(out_file, "/*\t$NetBSD: cyzfirm2h.c,v 1.9 2012/03/08 16:40:37 jakllsch Exp $\t*/\n\n");
fprintf(out_file,
"/*\n"
" * Firmware for Cyclades Z series multiport serial boards.\n"
@@ -116,13 +116,15 @@
while (in_len != 0) {
if (i == 0)
fprintf(out_file, "\t");
- fprintf(out_file, "0x%02x, ", *in_ptr);
+ fprintf(out_file, "0x%02x,", *in_ptr);
in_ptr++;
in_len--;
i++;
if (i == 10) {
fprintf(out_file, "\n");
i = 0;
+ } else if (in_len != 0) {
+ fprintf(out_file, " ");
}
}
fprintf(out_file, "\n};\n\n");
Home |
Main Index |
Thread Index |
Old Index