Add extra output for imgdiag's failing CHECK.
Test: m test-art-host-gtest
Bug: 123852774
Change-Id: I7be4a17d751ce0385655d50f608106aa0f9c2024
diff --git a/imgdiag/imgdiag.cc b/imgdiag/imgdiag.cc
index 5cd77e0..d34f013 100644
--- a/imgdiag/imgdiag.cc
+++ b/imgdiag/imgdiag.cc
@@ -1574,7 +1574,8 @@
// page_frame_number_clean must come from the *same* process
// but a *different* mmap than page_frame_number
if (flags_dirty) {
- CHECK_NE(page_frame_number, page_frame_number_clean);
+ CHECK_NE(page_frame_number, page_frame_number_clean)
+ << " count: " << *page_count << " flags: 0x" << std::hex << kpage_flags_entry;
}
return page_frame_number != page_frame_number_clean;