diff -r -u5 -N -x CVS ecos_orig/packages/io/fileio/current/tests/fileio1.c ecos_dev/packages/io/fileio/current/tests/fileio1.c --- ecos_orig/packages/io/fileio/current/tests/fileio1.c 2006-02-16 18:46:06.000000000 +0000 +++ ecos_dev/packages/io/fileio/current/tests/fileio1.c 2006-05-16 21:14:03.343750000 +0100 @@ -153,11 +153,11 @@ int fd; ssize_t wrote; int i; int err; - diag_printf(": create file %s size %d\n",name,size); + diag_printf(": create file %s size %zd\n",name,size); err = access( name, F_OK ); if( err < 0 && errno != EACCES ) SHOW_RESULT( access, err ); for( i = 0; i < IOSIZE; i++ ) buf[i] = i%256; @@ -208,11 +208,11 @@ size += wrote; } while( wrote == IOSIZE ); - diag_printf(": file size == %d\n",size); + diag_printf(": file size == %zd\n",size); err = close( fd ); if( err < 0 ) SHOW_RESULT( close, err ); } diff -r -u5 -N -x CVS ecos_orig/packages/io/fileio/current/tests/testfs.c ecos_dev/packages/io/fileio/current/tests/testfs.c --- ecos_orig/packages/io/fileio/current/tests/testfs.c 2005-08-03 22:05:16.000000000 +0100 +++ ecos_dev/packages/io/fileio/current/tests/testfs.c 2006-05-16 21:10:48.484375000 +0100 @@ -1173,11 +1173,11 @@ testfs_block *b = nd->u.file.data[j]; if( b != NULL ) { if( j > 0 && (j%4) == 0 ) diag_printf(indent); - diag_printf(" %3d[%3ld,%3d]",b-block, + diag_printf(" %3d[%3ld,%3zd]",(int) (b-block), (unsigned long)b->pos,b->size); if( b->u.file != nd ) { errors++; diag_printf("!"); @@ -1197,11 +1197,11 @@ testfs_node *n = nd->u.dir.nodes[j]; if( n != NULL ) { if( j > 0 && (j%4) == 0 ) diag_printf(indent); - diag_printf(" %3d[%7s]",n-node,n->name); + diag_printf(" %3d[%7s]",(int) (n-node),n->name); rc++; } } if( nd->refcnt != rc ) @@ -1226,11 +1226,11 @@ diag_printf(" "); else { int j; testfs_node *nd = b->u.file; - diag_printf(" %3ld %3d %d[%7s]",b->pos,b->size,nd-node,nd->name); + diag_printf(" %3ld %3zd %d[%7s]",b->pos,b->size,(int) (nd-node),nd->name); for( j = 0; j < TESTFS_FILEBLOCKS; j++ ) { if( nd->u.file.data[j] == b ) break; }