This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: synth flash dev fixes
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Simon Kallweit <simon dot kallweit at intefo dot ch>
- Cc: eCos Patches List <ecos-patches at ecos dot sourceware dot org>
- Date: Wed, 19 Nov 2008 19:42:15 +0100
- Subject: Re: synth flash dev fixes
- References: <49244E12.80401@intefo.ch>
> @@ -106,7 +106,7 @@
> blocks = info.block_info[0].blocks;
> }
> for (j=0;j < info.num_block_infos; j++) {
> - diag_printf("INFO:\t block_size %d, blocks %d\n",
> + diag_printf("INFO:\t block_size %lu, blocks %u\n",
> info.block_info[j].block_size,
> info.block_info[j].blocks);
> }
Interesting. With this patch i get:
/home/lunn/eCos/anoncvs-clean/packages/devs/flash/synthv2/current/tests/flash2.c: In function 'cyg_user_start':
/home/lunn/eCos/anoncvs-clean/packages/devs/flash/synthv2/current/tests/flash2.c:117: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'size_t'
Without the patch it compiles cleanly.
What version of gcc are you using? I have gcc version 4.3.1 (Debian 4.3.1-8).
Andrew