Mercurial > ecos
changeset 2205:1128b12096f1
* tests/ramfs1.c (createfile): Fix compile warnings.
| author | asl |
|---|---|
| date | Wed, 17 May 2006 16:12:11 +0000 |
| parents | 179cdabd06f0 |
| children | 7681e8acc4cd |
| files | packages/fs/ram/current/ChangeLog packages/fs/ram/current/tests/ramfs1.c |
| diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/fs/ram/current/ChangeLog +++ b/packages/fs/ram/current/ChangeLog @@ -1,3 +1,7 @@ +2006-05-17 Andy Jackson <andy@grapevinetech.co.uk> + + * tests/ramfs1.c (createfile): Fix compile warnings. + 2005-10-01 Andrew Lunn <andrew.lunn@ascom.ch> * src/ramfs.c: Implement holes in files when using BLOCK
--- a/packages/fs/ram/current/tests/ramfs1.c +++ b/packages/fs/ram/current/tests/ramfs1.c @@ -73,6 +73,7 @@ #include <string.h> #include <dirent.h> +#include <stdio.h> #include <cyg/fileio/fileio.h> #include <cyg/infra/testcase.h> @@ -187,7 +188,7 @@ static void createfile( char *name, size 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 );
