mlo and uboot


I want trace the flow of mlo code and uboot code. Say i want to add simple printf statements to mlo and u boot. say. after the mlo booted it has to printed “MLO is booted” and after uboot booted it has to print"UBoot is ooted". How I can modify the source codes to perform such a operation ?