Skip to content

Commit 7ab86c1

Browse files
committed
Fix rope printing
1 parent 7d950d5 commit 7ab86c1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/java/org/truffleruby/core/rope/RopeNodes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ protected Object debugPrintRepeatingRope(RepeatingRope rope, int currentLevel, b
828828
final boolean bytesAreNull = rope.getRawBytes() == null;
829829

830830
System.err.println(String.format(
831-
"%s (%s; BN: %b; BL: %d; CL: %d; CR: %s; T: %d; D: %d; E: %s)",
831+
"%s (%s; BN: %b; BL: %d; CL: %d; CR: %s; T: %d; E: %s)",
832832
printString ? RopeOperations.escape(rope) : "<skipped>",
833833
rope.getClass().getSimpleName(),
834834
bytesAreNull,
@@ -852,7 +852,7 @@ protected Object debugPrintLazyInt(LazyIntRope rope, int currentLevel, boolean p
852852
final boolean bytesAreNull = rope.getRawBytes() == null;
853853

854854
System.err.println(String.format(
855-
"%s (%s; BN: %b; BL: %d; CL: %d; CR: %s; V: %d, D: %d; E: %s)",
855+
"%s (%s; BN: %b; BL: %d; CL: %d; CR: %s; V: %d, E: %s)",
856856
printString ? RopeOperations.escape(rope) : "<skipped>",
857857
rope.getClass().getSimpleName(),
858858
bytesAreNull,

src/main/java/org/truffleruby/core/rope/TruffleRopesNodes.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ protected Object debugPrint(Object string, boolean printString,
7676
System.err.println("CR = Code Range");
7777
System.err.println("O = Byte Offset (SubstringRope only)");
7878
System.err.println("T = Times (RepeatingRope only)");
79-
System.err.println("D = Depth");
80-
System.err.println("LD = Left Depth (ConcatRope only)");
81-
System.err.println("RD = Right Depth (ConcatRope only)");
79+
System.err.println("V = Value (LazyIntRope only)");
8280
System.err.println("E = Encoding");
8381
System.err.println("P = Native Pointer (NativeRope only)");
8482
System.err.println("S = Native Size (NativeRope only)");

0 commit comments

Comments
 (0)