# HG changeset patch # User asl # Date 1227441846 0 # Node ID a8a5496dc26ad4f5e09f0023c53a1600ebadcc08 # Parent aee6bfaf78cd30a3628a66cf8d8b6a165e522706 * tests/flash2.c: Fixed a few warnings. diff --git a/packages/devs/flash/synth/current/ChangeLog b/packages/devs/flash/synth/current/ChangeLog --- a/packages/devs/flash/synth/current/ChangeLog +++ b/packages/devs/flash/synth/current/ChangeLog @@ -1,3 +1,7 @@ +2008-11-19 Simon Kallweit + + * tests/flash2.c: Fixed a few warnings. + 2008-11-17 Jonathan Larmour * Merge from flash_v2 branch: diff --git a/packages/devs/flash/synth/current/tests/flash2.c b/packages/devs/flash/synth/current/tests/flash2.c --- 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); }