use correct printf sequence for the memory datatype