[asan] Print shadow memory and legend as a single printf call.