Hi, I am using the thingy91 to read and print sensordata and print timestamp in unix milliseconds at the same time. The sensordata is given in printf("Sensordata %.3f", sensordata) format, and timestamp is given in printk("Time: %llu \n", unix_time_ms). I am in the LTE link monitor to look at the prints. I tried to only use printf(), but it can't print %llu format for some reason, and printk() cant print %.3f format. Tried to google for answers but I didnt find any. I tried using fflush(stdout), but seems like it doesnt affect printk.
Is it a solution to my problem where I either can use prink and do formatting like this, or only printf? Or is it a way to flush both buffers so they are printed in order/ and at the given time?
Thanks for potential answers!