[app][tests] knock out a few warnings
This commit is contained in:
@@ -71,10 +71,10 @@ static void bench_memcpy(void)
|
||||
libc = bench_memcpy_routine(&memcpy, srcalign, dstalign);
|
||||
mine = bench_memcpy_routine(&mymemcpy, srcalign, dstalign);
|
||||
|
||||
printf("srcalign %lu, dstalign %lu\n", srcalign, dstalign);
|
||||
printf(" null memcpy %u msecs\n", null);
|
||||
printf(" libc memcpy %u msecs, %llu bytes/sec\n", libc, BUFFER_SIZE * ITERATIONS * 1000ULL / libc);
|
||||
printf(" my memcpy %u msecs, %llu bytes/sec\n", mine, BUFFER_SIZE * ITERATIONS * 1000ULL / mine);
|
||||
printf("srcalign %zu, dstalign %zu\n", srcalign, dstalign);
|
||||
printf(" null memcpy %lu msecs\n", null);
|
||||
printf(" libc memcpy %lu msecs, %llu bytes/sec\n", libc, BUFFER_SIZE * ITERATIONS * 1000ULL / libc);
|
||||
printf(" my memcpy %lu msecs, %llu bytes/sec\n", mine, BUFFER_SIZE * ITERATIONS * 1000ULL / mine);
|
||||
|
||||
if (dstalign == 0)
|
||||
dstalign = 1;
|
||||
@@ -158,9 +158,9 @@ static void bench_memset(void)
|
||||
libc = bench_memset_routine(&memset, dstalign);
|
||||
mine = bench_memset_routine(&mymemset, dstalign);
|
||||
|
||||
printf("dstalign %lu\n", dstalign);
|
||||
printf(" libc memset %u msecs, %llu bytes/sec\n", libc, BUFFER_SIZE * ITERATIONS * 1000ULL / libc);
|
||||
printf(" my memset %u msecs, %llu bytes/sec\n", mine, BUFFER_SIZE * ITERATIONS * 1000ULL / mine);
|
||||
printf("dstalign %zu\n", dstalign);
|
||||
printf(" libc memset %lu msecs, %llu bytes/sec\n", libc, BUFFER_SIZE * ITERATIONS * 1000ULL / libc);
|
||||
printf(" my memset %lu msecs, %llu bytes/sec\n", mine, BUFFER_SIZE * ITERATIONS * 1000ULL / mine);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ static void validate_memset(void)
|
||||
#if defined(WITH_LIB_CONSOLE)
|
||||
#include <lib/console.h>
|
||||
|
||||
static int string_tests(int argc, cmd_args *argv)
|
||||
static int string_tests(int argc, const cmd_args *argv)
|
||||
{
|
||||
src = memalign(64, BUFFER_SIZE + 256);
|
||||
dst = memalign(64, BUFFER_SIZE + 256);
|
||||
|
||||
@@ -39,8 +39,10 @@ void printf_tests(void)
|
||||
printf("ulong: %lu %lu %lu\n", -12345678UL, 0UL, 12345678UL);
|
||||
|
||||
// GCC has a problem with the next two lines
|
||||
#if 0
|
||||
printf("long: %D %D %D\n", -12345678L, 0L, 12345678L);
|
||||
printf("ulong: %U %U %U\n", -12345678UL, 0UL, 12345678UL);
|
||||
#endif
|
||||
|
||||
printf("longlong: %lli %lli %lli\n", -12345678LL, 0LL, 12345678LL);
|
||||
printf("ulonglong: %llu %llu %llu\n", -12345678LL, 0LL, 12345678LL);
|
||||
|
||||
Reference in New Issue
Block a user