Module Name:    src
Committed By:   jruoho
Date:           Sat Mar  5 06:28:29 UTC 2011

Modified Files:
        src/sys/dev/nand: nand.h

Log Message:
KNF.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/nand/nand.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/nand/nand.h
diff -u src/sys/dev/nand/nand.h:1.1 src/sys/dev/nand/nand.h:1.2
--- src/sys/dev/nand/nand.h:1.1	Sat Feb 26 18:07:31 2011
+++ src/sys/dev/nand/nand.h	Sat Mar  5 06:28:29 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: nand.h,v 1.1 2011/02/26 18:07:31 ahoka Exp $	*/
+/*	$NetBSD: nand.h,v 1.2 2011/03/05 06:28:29 jruoho Exp $	*/
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -453,9 +453,11 @@
 static inline void
 nand_dump_data(const char *name, void *data, size_t len)
 {
-	printf("dumping %s\n--------------\n", name);
 	uint8_t *dump = data;
-	for (int i = 0; i < len; i++) {
+	int i;
+
+	printf("dumping %s\n--------------\n", name);
+	for (i = 0; i < len; i++) {
 		printf("0x%.2hhx ", *dump);
 		dump++;
 	}

Reply via email to