show_mem uses flags argument

Signed-off-by: Lokesh Mandvekar <lsm5@buffalo.edu>