[rtems commit] libcsupport: Fix printk warnings.

Chris Johns chrisj at rtems.org
Wed May 25 06:56:44 UTC 2016


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

Author:    Chris Johns <chrisj at rtems.org>
Date:      Mon May 23 15:28:10 2016 +1000

libcsupport: Fix printk warnings.

---

 cpukit/libcsupport/src/free.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/libcsupport/src/free.c b/cpukit/libcsupport/src/free.c
index f3d4cb8..9020958 100644
--- a/cpukit/libcsupport/src/free.c
+++ b/cpukit/libcsupport/src/free.c
@@ -40,8 +40,8 @@ void free(
   if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
     printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
       ptr,
-      RTEMS_Malloc_Heap->area_begin,
-      RTEMS_Malloc_Heap->area_end
+      (void*) RTEMS_Malloc_Heap->area_begin,
+      (void*) RTEMS_Malloc_Heap->area_end
     );
   }
 




More information about the vc mailing list