cputest: simplified func to print hashes with algo names

add a prefixed printf with some colors