less warnings
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 19 Jun 2009 09:09:25 +0000 (09:09 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 19 Jun 2009 09:09:25 +0000 (09:09 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2291 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/ecosboard.c

index d49abbd1594a1bb2b6009b7236ee06a04edf8b05..d6bb0a4016a5cac3d3e7da1f5cbd6d26d0cece99 100644 (file)
@@ -148,7 +148,6 @@ void start_profile(void)
 }
 #endif
 
-extern int eth0_up;
 static FILE *log;
 
 static char reboot_stack[2048];
@@ -305,7 +304,7 @@ void format(void)
        err = cyg_io_get_config(handle, CYG_IO_GET_CONFIG_FLASH_ERASE, &e, &len);
        if (err != ENOERR)
        {
-               diag_printf("Flash erase error %d offset 0x%p\n", err, e.err_address);
+               diag_printf("Flash erase error %d offset 0x%08x\n", err, e.err_address);
                reboot();
        }