Printing correct used memory