On Fri, 11 Apr 2025 16:10:05 +0800 Chaoyong He <chaoyong...@corigine.com> wrote:
> +static void > +rx_vft_dump_printf(int left, int right, int *c_count) > +{ > + if (left == right) > + *c_count += printf("%d,", left); > + else > + *c_count += printf("%d-%d,", left, right); > + > + if (*c_count >= 120) { > + *c_count = 0; > + printf("\n"); > + } > +} > + Since VLAN id's are unsigned, should really not be using int. If you are really going to have lines that long, must be a real mess of a config. Once again, this is getting to be overkill for normal usage.