fixed endianess bug in printf