serial.print and printf

To format output you need to use sprintf to put the formatted text in a buffer then use the normal Serial.print commands to output the buffer. You cannot include formatting commands within the Serial.print commands.

You can influence the output of Serial.print a small amount by using parameters after the value to be printed

Serial.print(variable, HEX);

will print the value of the variable in HEX, for instance and you can also include \t, \n and \r in strings to give a tab, newline and carriage return respectively.