From 6fda1181163f008e7194276d7c0bf552fc9bbfd9 Mon Sep 17 00:00:00 2001 From: Andrei Shikov Date: Wed, 21 Apr 2021 10:25:58 -0700 Subject: [PATCH] Show surfaceId when logging IntBufferBatchMountItem Summary: Adds surface id for string logs of the IntBufferBatchMountItem to help debug updates with multiple surfaces. Changelog: [Internal] Reviewed By: JoshuaGross Differential Revision: D27884232 fbshipit-source-id: c5ec65585830f7aa5b902603bcd1e91b61cfe4c1 --- .../fabric/mounting/mountitems/IntBufferBatchMountItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java index d6d3a0f9c2b..9d2aa1d63c8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java @@ -193,7 +193,7 @@ public class IntBufferBatchMountItem implements MountItem { public String toString() { try { StringBuilder s = new StringBuilder(); - s.append("IntBufferBatchMountItem:"); + s.append(String.format("IntBufferBatchMountItem [surface:%d]:\n", mSurfaceId)); int i = 0, j = 0; while (i < mIntBufferLen) { int rawType = mIntBuffer[i++];