Hi Segger Team,
we're having software that passes printf format strings with
Currently we do patch the SystemView sources right now in the following way.
EDIT:
One thing to mention here is that
Host functions only work liek expected with such format string when
When disabled (default) the PC software does receives the format string with the
Then the behavior is the same like right now when using
We also created a patch file: VPrintTarget-string-formatting.zip
Be aware that this also includes the string NULL check discusses for RTT in this thread.
It would be nice, if this patch could get part of the official SystemView release.
Thanks
Best regards
Philipp Häfele
we're having software that passes printf format strings with
%s
in the format string and we want to be able to pass this trough SystemView too (RTT already does support it).Currently we do patch the SystemView sources right now in the following way.
EDIT:
One thing to mention here is that
%s
format string then would only be working when formatted on target.Host functions only work liek expected with such format string when
SEGGER_SYSVIEW_PRINTF_IMPLICIT_FORMAT
is set.When disabled (default) the PC software does receives the format string with the
%s
and the char*
converted to an integer.Then the behavior is the same like right now when using
Host
functions with a %s
We also created a patch file: VPrintTarget-string-formatting.zip
Be aware that this also includes the string NULL check discusses for RTT in this thread.
It would be nice, if this patch could get part of the official SystemView release.
Thanks
Best regards
Philipp Häfele
The post was edited 1 time, last by ifmPhilipp ().