Converting malloc'd memory into a char array : I have some data that i want to send to a USART terminal which only accepts a char array.

First i create the data and fill it with stuff:

    uint32_t * testdata =   malloc(60 * sizeof(uint32_t)); // 240 bytes on my system
	memset(testdata,3,240); // fill it

then create a char array and copy the test data into it

    char* valueAsString =  malloc(60 * sizeof(uint32_t) + 1);// one more for 0-terminator
	snprintf( valueAsString, 240 + 1, "%d", testdata );


The function to send data looks like this:

    static void sendRS232string(char message[], uint16_t messageLength )
    {
	    for (uint8_t i = 0; i < messageLength; i++)
	        {
		        usart_putchar(USART_SERIAL, message[i]);
	        }
    }

All i get on the output is '88' ?

BTW i'm using a 32bit ATMEL microcontroller: ATXMEGA128A1U

Any ideas on how to achieve this?