The serial_c_ifaceprintf intercept must be included after the standard library definitions, otherwise it is overwritten. Currently, there are parts of our library that are effectively "dark" to the intercept, and any prints originating from such locations are not shown correctly.
To fix this issue, stdlib.h and stdio.h includes should be centralized to one location (probably kv_system) so we are aware of when it is being implicitly included. Then, serial_c_iface.h should be explicitly included in any file that utilizes printf.
The
serial_c_iface
printf
intercept must be included after the standard library definitions, otherwise it is overwritten. Currently, there are parts of our library that are effectively "dark" to the intercept, and any prints originating from such locations are not shown correctly.To fix this issue,
stdlib.h
andstdio.h
includes should be centralized to one location (probablykv_system
) so we are aware of when it is being implicitly included. Then,serial_c_iface.h
should be explicitly included in any file that utilizesprintf
.