Update freqaddr.c

runs with makefile. fix print method