Mercurial > ecos-v3_0-branch
changeset 1920:58d2e6ee668d
* tests/heaptest.c (test_pat): Fix compiler error with
diag_printf.
| author | asl |
|---|---|
| date | Sun, 27 Mar 2005 17:21:23 +0000 |
| parents | 569bc58fc509 |
| children | 4a0fb24e1de5 |
| files | packages/services/memalloc/common/current/ChangeLog packages/services/memalloc/common/current/tests/heaptest.c |
| diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/services/memalloc/common/current/ChangeLog +++ b/packages/services/memalloc/common/current/ChangeLog @@ -2,6 +2,8 @@ 2005-03-27 Andrew Lunn <andrew.lunn@as * cdl/memalloc.cdl: Added reference to documentation * doc/memalloc.sgml: Basic user documentation. + * tests/heaptest.c (test_pat): Fix compiler error with + diag_printf. 2004-10-04 Oyvind Harboe <oyvind.harboe@zylin.com>
--- a/packages/services/memalloc/common/current/tests/heaptest.c +++ b/packages/services/memalloc/common/current/tests/heaptest.c @@ -127,7 +127,8 @@ test_pat(unsigned char *buf, int size, bpat = ((int)bufptr)&0xFF; if ( *bufptr != bpat ) { diag_printf( "FAIL:<Memory at 0x%08x: expected 0x%02x, read 0x%02x>\n", - bufptr, (int)bpat, (int)*bufptr ); + (unsigned int)bufptr, (unsigned int)bpat, + (unsigned int)*bufptr ); if ( errors++ == ERRORTHRESHOLD ) CYG_TEST_FAIL_FINISH( testname ); } @@ -141,7 +142,7 @@ test_pat(unsigned char *buf, int size, pat = (unsigned int)ibufptr; if ( *ibufptr != pat ) { diag_printf( "FAIL:<Memory at 0x%08x: expected 0x%08x, read 0x%08x>\n", - ibufptr, pat, *ibufptr ); + (unsigned int) ibufptr, pat, *ibufptr ); if ( errors++ == ERRORTHRESHOLD ) CYG_TEST_FAIL_FINISH( testname ); } @@ -154,7 +155,8 @@ test_pat(unsigned char *buf, int size, bpat = ((int)bufptr)&0xFF; if ( *bufptr != bpat ) { diag_printf( "FAIL:<Memory at 0x%08x: expected 0x%02x, read 0x%02x>\n", - bufptr, (int)bpat, (int)*bufptr ); + (unsigned int) bufptr, (unsigned int)bpat, + (unsigned int)*bufptr ); if ( errors++ == ERRORTHRESHOLD ) CYG_TEST_FAIL_FINISH( testname ); } @@ -208,7 +210,7 @@ cyg_start(void) } diag_printf( "INFO:<Testing memory at 0x%08x of size %d for %d iterations>\n", - buf, info.maxfree, ITERS ); + (unsigned int)buf, info.maxfree, ITERS ); for (i=0; i<ITERS; i++) { errors += test_pat( buf, info.maxfree, 0, 0, "all zeroes" ); errors += test_pat( buf, info.maxfree, allonesint, 0,
