[rtems commit] psxmmap01/init.c: Correct printf() format specifier

Joel Sherrill joel at rtems.org
Fri Jul 28 19:31:20 UTC 2017


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Fri Jul 28 11:21:18 2017 -0500

psxmmap01/init.c: Correct printf() format specifier

---

 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 8b68b7d..e3e8b9a 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", (long)map_at_zero_tests[i].addr );
+          "mmap(%p, ...) failed\n", 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