pebble-dev / RebbleOS

open source operating system for low-power smartwatches
Other
355 stars 38 forks source link

Better log output #19

Open ginge opened 7 years ago

ginge commented 7 years ago

Log formatting crude. Needs cleanup

jwise commented 7 years ago

PebbleOS has a pretty good architecture for this in general. I think they have strings in debug builds that get collapsed to filename/line number in prod builds. As a bonus, that means that they have a compressed log format that can get splatted out over Bluetooth quickly -- or a log format that can get written to flash without taking up too much space.

I think a good first cut at this would be to see if we can get rid of (!) the printf() function from the codebase entirely. Then, anyone doing output at least is forced to get marshaled through a common log entry point...

eliedrian commented 4 years ago

I'm working my way to removing printf's and replacing them with what I think are appropriate _LOG's

jwise commented 4 years ago

That'd be great! That would also pipeclean for #80.