kivancsikert / ugly-duckling

Firmware for FarmHub devices
0 stars 0 forks source link

Validate format strings in log messages #163

Closed lptr closed 3 months ago

lptr commented 3 months ago

Apparently we had a bunch of badly phrased format strings in the code; these are now fixed. Moreover, we now validate them by the compiler, so we won't be able to introduce more such violations.

The incorrect format strings were definitely behind problems like the garbage printed instead of the hostname during boot. But they might have been responsible for more problematic behaviors, too.