> > i'm using busybox myself. it appears the issue in your version seems to be that printf must use parens - so the obvious fix would be to just add parens, rather than remodeling the string for print usage.
> The problem was that the % escapes were getting output verbatim into the minishilka file, such that %type became %%type and %%\n became %%%%\n, preventing parsing with either minishilka or dino shilka. This was hard for me to find, involving comprehending the shilka format from your code. I have busybox v1.33.1 on alpine linux 3.14.2 .
For some reason awk's printf didn't parse escaped %'s for me. This seems a very very strange behavior of a printf function, which the other developer also did not intuit. I'm worried the pull request could get closed if it is a weird local change to my device.