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  <[EMAIL PROTECTED]>
+
+	* tests/fatfs1.c: Fixed the format string to diag_printf()
+	to remove compiler warnings.
+
 2006-08-04  Paul Fine  <[EMAIL PROTECTED]>
             Andrew Lunn <[EMAIL PROTECTED]>
 	
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 );

Reply via email to