Fwd: [rtems commit] psxtests/psxmmap01: Fix warning

Joel Sherrill joel at rtems.org
Fri Jul 28 14:19:44 UTC 2017


This is printing a pointer and should have been a %p not adding a cast.

---------- Forwarded message ----------
From: Sebastian Huber <sebh at rtems.org>
Date: Fri, Jul 28, 2017 at 6:54 AM
Subject: [rtems commit] psxtests/psxmmap01: Fix warning
To: vc at rtems.org


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",

_______________________________________________
vc mailing list
vc at rtems.org
http://lists.rtems.org/mailman/listinfo/vc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170728/e336944c/attachment.html>


More information about the devel mailing list