Update printf.cpp

bugfix
https://github.com/RC-MODULE/nmc-utils/issues/1