Skip to content

fix stack overflow in debug prints for guards

Jeremy Soller requested to merge m4b:fix_stack_overflow into master

Created by: m4b

Previously printing would blow the stack with:

WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(WriteGuard(

also minorly fixes a doc comment error/warning

Merge request reports