am 0c3f1ae6: Refactor dump_memory function.

* commit '0c3f1ae66b693ef0f37066b697cc10a07ef56acc':
  Refactor dump_memory function.