struct debug_flush_item *item =
(struct debug_flush_item *) value;
struct debug_flush_buf *fbuf = item->fbuf;
- const char *reason = (const char *) data;
- char message[80];
-
- util_snprintf(message, sizeof(message),
- "%s referenced mapped buffer detected.", reason);
mtx_lock(&fbuf->mutex);
if (fbuf->mapped_sync) {
+ const char *reason = (const char *) data;
+ char message[80];
+
+ util_snprintf(message, sizeof(message),
+ "%s referenced mapped buffer detected.", reason);
+
debug_flush_alert(message, reason, 3, item->bt_depth, TRUE, TRUE, NULL);
debug_flush_alert(NULL, "Map", 0, fbuf->bt_depth, TRUE, FALSE,
fbuf->map_frame);