Overhaul the debug_selector and log_selector machinery to support variable-length...