[rtems commit] psxtests/psxmmap01: Fix warning

Sebastian Huber sebh at rtems.org
Fri Jul 28 11:54:03 UTC 2017


Module:    rtems
Branch:    master
Commit:    77cbb2a4442aa9a1d0e175ed4f690f57930eaa70
Changeset: http://git.rtems.org/rtems/commit/?id=77cbb2a4442aa9a1d0e175ed4f690f57930eaa70

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jul 28 13:53:18 2017 +0200

psxtests/psxmmap01: Fix warning

Update #2859.

---

 testsuites/psxtests/psxmmap01/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuites/psxtests/psxmmap01/init.c b/testsuites/psxtests/psxmmap01/init.c
index 85e884a..8b68b7d 100644
--- a/testsuites/psxtests/psxmmap01/init.c
+++ b/testsuites/psxtests/psxmmap01/init.c
@@ -102,7 +102,7 @@ static void mmap_map_at_zero( void )
         -1, 0);
     if (p == MAP_FAILED) {
       mmap_test_assert( map_at_zero_tests[i].ok == 0,
-          "mmap(%08lX, ...) failed\n", (uint32_t)map_at_zero_tests[i].addr );
+          "mmap(%08lX, ...) failed\n", (long)map_at_zero_tests[i].addr );
     } else {
       mmap_test_check( map_at_zero_tests[i].ok == 1,
           "mmap(%p, ...) succeeded: p=%p\n",




More information about the vc mailing list