Mercurial > ecos
changeset 2659:a8a5496dc26a
* tests/flash2.c: Fixed a few warnings.
| author | asl |
|---|---|
| date | Sun, 23 Nov 2008 12:04:06 +0000 |
| parents | aee6bfaf78cd |
| children | b3f68c7d3671 |
| files | packages/devs/flash/synth/current/ChangeLog packages/devs/flash/synth/current/tests/flash2.c |
| diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/flash/synth/current/ChangeLog +++ b/packages/devs/flash/synth/current/ChangeLog @@ -1,3 +1,7 @@ +2008-11-19 Simon Kallweit <simon.kallweit@intefo.ch> + + * tests/flash2.c: Fixed a few warnings. + 2008-11-17 Jonathan Larmour <jifl@eCosCentric.com> * Merge from flash_v2 branch:
--- a/packages/devs/flash/synth/current/tests/flash2.c +++ b/packages/devs/flash/synth/current/tests/flash2.c @@ -98,7 +98,7 @@ void cyg_user_start(void) ret = cyg_flash_get_info(i, &info); if (ret == CYG_FLASH_ERR_OK) { diag_printf("INFO: Nth=%d, start=%p, end=%p\n", - i, info.start, info.end); + i, (void *) info.start, (void *) info.end); if (i == 0) { flash_start = info.start; flash_end = info.end; @@ -106,7 +106,7 @@ void cyg_user_start(void) 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 %zd, blocks %u\n", info.block_info[j].block_size, info.block_info[j].blocks); }
