Update of /cvsroot/blob/blob/utils/test
In directory usw-pr-cvs1:/tmp/cvs-serv30679/utils/test
Modified Files:
load_kernel_test.c
Log Message:
cleanup for debug
Index: load_kernel_test.c
===================================================================
RCS file: /cvsroot/blob/blob/utils/test/load_kernel_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- load_kernel_test.c 14 Feb 2002 09:59:34 -0000 1.1
+++ load_kernel_test.c 26 Apr 2002 04:50:49 -0000 1.2
@@ -1,6 +1,6 @@
-typedef unsigned long u32;
-typedef unsigned short u16;
-typedef unsigned char u8;
+#ifdef HAVE_CONFIG_H
+# include <blob/config.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
@@ -45,7 +45,9 @@
printf("flash emulation region is 0x%lx bytes\n", part.size);
- for (i = 0; loader[i] && !loader[i]->check_magic(&part); i++);
+ for (i = 0; loader[i]; i++)
+ if (loader[i]->check_magic(&part))
+ break;
if (!loader[i]) {
printf("unable to find magic\n");
} else {
|