#define MY_PRINTF uart_print_user_msg
should do the job.
I dont like macros, because of strange errors and debugging huzzle. Avoid them, and use functions. The compiler and linker will produce the
same code so the advantages arent so great as you may think.