@@ -3503,11 +3503,11 @@ bool YGLayoutNodeInternal(const YGNodeRef node,
3503
3503
layout -> measuredDimensions [YGDimensionHeight ] = cachedResults -> computedHeight ;
3504
3504
3505
3505
if (gPrintChanges && gPrintSkips ) {
3506
- printf ( "%s%d.{[skipped] " , YGSpacer (gDepth ), gDepth );
3506
+ YGLog ( node , YGLogLevelVerbose , "%s%d.{[skipped] " , YGSpacer (gDepth ), gDepth );
3507
3507
if (node -> print ) {
3508
3508
node -> print (node );
3509
3509
}
3510
- printf ( "wm: %s, hm: %s, aw: %f ah: %f => d: (%f, %f) %s\n" ,
3510
+ YGLog ( node , YGLogLevelVerbose , "wm: %s, hm: %s, aw: %f ah: %f => d: (%f, %f) %s\n" ,
3511
3511
YGMeasureModeName (widthMeasureMode , performLayout ),
3512
3512
YGMeasureModeName (heightMeasureMode , performLayout ),
3513
3513
availableWidth ,
@@ -3518,11 +3518,11 @@ bool YGLayoutNodeInternal(const YGNodeRef node,
3518
3518
}
3519
3519
} else {
3520
3520
if (gPrintChanges ) {
3521
- printf ( "%s%d.{%s" , YGSpacer (gDepth ), gDepth , needToVisitNode ? "*" : "" );
3521
+ YGLog ( node , YGLogLevelVerbose , "%s%d.{%s" , YGSpacer (gDepth ), gDepth , needToVisitNode ? "*" : "" );
3522
3522
if (node -> print ) {
3523
3523
node -> print (node );
3524
3524
}
3525
- printf ( "wm: %s, hm: %s, aw: %f ah: %f %s\n" ,
3525
+ YGLog ( node , YGLogLevelVerbose , "wm: %s, hm: %s, aw: %f ah: %f %s\n" ,
3526
3526
YGMeasureModeName (widthMeasureMode , performLayout ),
3527
3527
YGMeasureModeName (heightMeasureMode , performLayout ),
3528
3528
availableWidth ,
@@ -3542,11 +3542,11 @@ bool YGLayoutNodeInternal(const YGNodeRef node,
3542
3542
config );
3543
3543
3544
3544
if (gPrintChanges ) {
3545
- printf ( "%s%d.}%s" , YGSpacer (gDepth ), gDepth , needToVisitNode ? "*" : "" );
3545
+ YGLog ( node , YGLogLevelVerbose , "%s%d.}%s" , YGSpacer (gDepth ), gDepth , needToVisitNode ? "*" : "" );
3546
3546
if (node -> print ) {
3547
3547
node -> print (node );
3548
3548
}
3549
- printf ( "wm: %s, hm: %s, d: (%f, %f) %s\n" ,
3549
+ YGLog ( node , YGLogLevelVerbose , "wm: %s, hm: %s, d: (%f, %f) %s\n" ,
3550
3550
YGMeasureModeName (widthMeasureMode , performLayout ),
3551
3551
YGMeasureModeName (heightMeasureMode , performLayout ),
3552
3552
layout -> measuredDimensions [YGDimensionWidth ],
@@ -3559,7 +3559,7 @@ bool YGLayoutNodeInternal(const YGNodeRef node,
3559
3559
if (cachedResults == NULL ) {
3560
3560
if (layout -> nextCachedMeasurementsIndex == YG_MAX_CACHED_RESULT_COUNT ) {
3561
3561
if (gPrintChanges ) {
3562
- printf ( "Out of cache entries!\n" );
3562
+ YGLog ( node , YGLogLevelVerbose , "Out of cache entries!\n" );
3563
3563
}
3564
3564
layout -> nextCachedMeasurementsIndex = 0 ;
3565
3565
}
0 commit comments