Re: [PATCH v4 13/15] tracing/filters: Fix error positions for CPUS mask parsing

From: Masami Hiramatsu (Google)

Date: Thu Dec 03 2026 - 21:58:51 EST


On Tue, 24 Nov 2026 19:44:34 -0500, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> On Thu, 29 Oct 2026 10:39:25 +0900
> "Masami Hiramatsu (Google)" <mhiramat@xxxxxxxxxx> wrote:
[...]
> > /* Skip CPUS */
> > i += 4;
> > - if (str[i++] != '{') {
> > + if (str[i] != '{') {
> > parse_error(pe, FILT_ERR_MISSING_BRACE_OPEN, pos + i);
>
> Instead of moving the i++ to below, couldn't you just make the above:
>
> parse_error(pe, FILT_ERR_MISSING_BRACE_OPEN, pos + i - 1);
>
> ?

OK, that seems cleaner.

Thanks,

--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>