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 avoid making too large diffs by...



details:   https://anonhg.NetBSD.org/src/rev/1866ff879212
branches:  trunk
changeset: 328364:1866ff879212
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 01 15:35:41 2014 +0000

description:
avoid making too large diffs by restoring length in non-debugging mode to 10

diffstat:

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

diffs (39 lines):

diff -r 465619658eaf -r 1866ff879212 sys/dev/microcode/cyclades-z/cyzfirm2h.c
--- a/sys/dev/microcode/cyclades-z/cyzfirm2h.c  Tue Apr 01 15:33:22 2014 +0000
+++ b/sys/dev/microcode/cyclades-z/cyzfirm2h.c  Tue Apr 01 15:35:41 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cyzfirm2h.c,v 1.12 2014/04/01 15:33:22 christos Exp $  */
+/*     $NetBSD: cyzfirm2h.c,v 1.13 2014/04/01 15:35:41 christos Exp $  */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: cyzfirm2h.c,v 1.12 2014/04/01 15:33:22 christos Exp $");
+__RCSID("$NetBSD: cyzfirm2h.c,v 1.13 2014/04/01 15:35:41 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/mman.h>
@@ -52,6 +52,11 @@
 #include <unistd.h>
 
 static void    usage(void) __dead;
+#ifdef DEBUG
+#define MAXLINE 8
+#else
+#define MAXLINE 10
+#endif
 
 int
 main(int argc, char *argv[])
@@ -123,7 +128,7 @@
                in_ptr++;
                in_len--;
                i++;
-               if (i == 8) {
+               if (i == MAXLINE) {
 #ifdef DEBUG
                        size_t j;
                        fprintf(out_file, "\t/* ");



Home | Main Index | Thread Index | Old Index