This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
FATFS testcase warnings fix.
- From: Andrew Lunn <andrew at lunn dot ch>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Sat, 27 Jan 2007 15:01:20 +0100
- Subject: FATFS testcase warnings fix.
This patch fixes a few compiler warning in the FATFS test case.
Andrew
Index: fs/fat/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/fat/current/ChangeLog,v
retrieving revision 1.13
diff -u -r1.13 ChangeLog
--- fs/fat/current/ChangeLog 4 Aug 2006 09:22:04 -0000 1.13
+++ fs/fat/current/ChangeLog 27 Jan 2007 14:00:38 -0000
@@ -1,3 +1,8 @@
+2007-01-27 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * tests/fatfs1.c: Fixed the format string to diag_printf()
+ to remove compiler warnings.
+
2006-08-04 Paul Fine <pfine@dtccom.com>
Andrew Lunn <andrew.lunn@ascom.ch>
Index: fs/fat/current/tests/fatfs1.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/fat/current/tests/fatfs1.c,v
retrieving revision 1.3
diff -u -r1.3 fatfs1.c
--- fs/fat/current/tests/fatfs1.c 4 Aug 2006 09:22:05 -0000 1.3
+++ fs/fat/current/tests/fatfs1.c 27 Jan 2007 14:00:38 -0000
@@ -179,7 +179,7 @@
int i;
int err;
- diag_printf("<INFO>: create file %s size %d\n",name,size);
+ diag_printf("<INFO>: create file %s size %zd \n",name,size);
err = access( name, F_OK );
if( err < 0 && errno != EACCES ) SHOW_RESULT( access, err );
@@ -237,13 +237,13 @@
if( (size-prevsize) > 100000 )
{
- diag_printf("<INFO>: size = %d \n", size);
+ diag_printf("<INFO>: size = %zd \n", size);
prevsize = size;
}
} while( wrote == IOSIZE );
- diag_printf("<INFO>: file size == %d\n",size);
+ diag_printf("<INFO>: file size == %zd\n",size);
err = close( fd );
if( err < 0 ) SHOW_RESULT( close, err );