printing: add more 'const' to read only input pointers