Merge "Improve debug printing in activity manager."