Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2006 21:44:22 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 101490 for review
Message-ID:  <200607132144.k6DLiMMo079839@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101490

Change 101490 by imp@imp_lighthouse on 2006/07/13 21:44:07

	Refine

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/bootspi/env_vars.c#7 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/bootspi/env_vars.c#7 (text+ko) ====

@@ -79,17 +79,10 @@
 void
 DumpBootCommands(void)
 {
-	int	i, j;
+	int	i;
 
-	for (i = 0; i < MAX_BOOT_COMMANDS; ++i) {
-		printf("0x%x : ", i);
-		for (j = 0; j < MAX_INPUT_SIZE; ++j) {
-			putchar(boot_commands[i][j]);
-			if (!(boot_commands[i][j]))
-				break;
-		}
-		printf("[E]\n\r");
-	}
+	for (i = 0; boot_commands[i][0]; i++)
+		printf("0x%x : %s[E]\r\n", i, boot_commands[i]);
 }
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607132144.k6DLiMMo079839>