<div dir="ltr">This is printing a pointer and should have been a %p not adding a cast.<div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Sebastian Huber</b> <span dir="ltr"><<a href="mailto:sebh@rtems.org">sebh@rtems.org</a>></span><br>Date: Fri, Jul 28, 2017 at 6:54 AM<br>Subject: [rtems commit] psxtests/psxmmap01: Fix warning<br>To: <a href="mailto:vc@rtems.org">vc@rtems.org</a><br><br><br>Module:    rtems<br>
Branch:    master<br>
Commit:    77cbb2a4442aa9a1d0e175ed4f690f<wbr>57930eaa70<br>
Changeset: <a href="http://git.rtems.org/rtems/commit/?id=77cbb2a4442aa9a1d0e175ed4f690f57930eaa70" rel="noreferrer" target="_blank">http://git.rtems.org/rtems/<wbr>commit/?id=<wbr>77cbb2a4442aa9a1d0e175ed4f690f<wbr>57930eaa70</a><br>
<br>
Author:    Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-<wbr>brains.de</a>><br>
Date:      Fri Jul 28 13:53:18 2017 +0200<br>
<br>
psxtests/psxmmap01: Fix warning<br>
<br>
Update #2859.<br>
<br>
---<br>
<br>
 testsuites/psxtests/psxmmap01/<wbr>init.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/testsuites/psxtests/<wbr>psxmmap01/init.c b/testsuites/psxtests/<wbr>psxmmap01/init.c<br>
index 85e884a..8b68b7d 100644<br>
--- a/testsuites/psxtests/<wbr>psxmmap01/init.c<br>
+++ b/testsuites/psxtests/<wbr>psxmmap01/init.c<br>
@@ -102,7 +102,7 @@ static void mmap_map_at_zero( void )<br>
         -1, 0);<br>
     if (p == MAP_FAILED) {<br>
       mmap_test_assert( map_at_zero_tests[i].ok == 0,<br>
-          "mmap(%08lX, ...) failed\n", (uint32_t)map_at_zero_tests[i]<wbr>.addr );<br>
+          "mmap(%08lX, ...) failed\n", (long)map_at_zero_tests[i].<wbr>addr );<br>
     } else {<br>
       mmap_test_check( map_at_zero_tests[i].ok == 1,<br>
           "mmap(%p, ...) succeeded: p=%p\n",<br>
<br>
______________________________<wbr>_________________<br>
vc mailing list<br>
<a href="mailto:vc@rtems.org">vc@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/vc" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/vc</a><br>
</div><br></div></div>