views/dazzling: Make debug prints more useful

This commit is contained in:
Georges Basile Stavracas Neto
2023-08-11 15:13:44 -03:00
parent 66cb36e855
commit 83acb98f9e
+4 -2
View File
@@ -170,8 +170,9 @@ move_bottom_row_to_top (GcalDazzlingMonthView *self)
#ifdef GCAL_ENABLE_TRACE #ifdef GCAL_ENABLE_TRACE
{ {
g_autofree gchar *first_row_range_str = gcal_range_to_string (first_row_range);
g_autofree gchar *new_range_str = gcal_range_to_string (new_range); g_autofree gchar *new_range_str = gcal_range_to_string (new_range);
GCAL_TRACE_MSG ("Moved bottom row to top, new range: %s", new_range_str); GCAL_TRACE_MSG ("Moved bottom row to top, new range: %s (first row range: %s)", new_range_str, first_row_range_str);
} }
#endif #endif
@@ -201,8 +202,9 @@ move_top_row_to_bottom (GcalDazzlingMonthView *self)
#ifdef GCAL_ENABLE_TRACE #ifdef GCAL_ENABLE_TRACE
{ {
g_autofree gchar *last_row_range_str = gcal_range_to_string (last_row_range);
g_autofree gchar *new_range_str = gcal_range_to_string (new_range); g_autofree gchar *new_range_str = gcal_range_to_string (new_range);
GCAL_TRACE_MSG ("Moved top row to bottom, new range: %s", new_range_str); GCAL_TRACE_MSG ("Moved top row to bottom, new range: %s (last row range: %s)", new_range_str, last_row_range_str);
} }
#endif #endif