]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/malloc.c
Beautified output.
[pdclib] / functions / stdlib / malloc.c
index 650d67f2edd77afd7d608c72e267575b9b9de7a0..22718ee67e778439d964d99d834201e878525f1e 100644 (file)
@@ -1,7 +1,5 @@
 /* $Id$ */
 
-/* Release $Name$ */
-
 /* void * malloc( size_t )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -167,8 +165,6 @@ void * sbrk( intptr_t );
 int main( void )
 {
 #ifndef REGTEST
-    printf( "Start of malloc() testing...\n" );
-    {
     void * ptr1, * ptr2, * ptr3, * ptr4, * ptr5, * ptr6, * ptr7, * ptr8, * ptr9;
     char * pages_start = _PDCLIB_allocpages( 0 );
     /* allocating 10 byte; expected: 1 page allocation, node split */
@@ -241,10 +237,8 @@ int main( void )
     TESTCASE( memset( ptr9, 0, 4072 ) == ptr9 );
     TESTCASE( PAGETEST( 9 ) );
     NODETRACE( 17 );
-    printf( "End of malloc() testing.\n" );
-    }
 #else
-    printf( "No testing of malloc() - test driver does not know internals of system malloc().\n" );
+    puts( "No testing of malloc() - test driver does not know internals of system function." );
 #endif
     return TEST_RESULTS;
 }