1、I see musl will visit the format Whether %n$ exists or not, If %n$ does not exist, maybe the first call is redundant. 2、I test this following format with benchmark, the result show 145+ns->110+ns if I remove the first call. "snprintf(buf, sizeof(buf), "this is a more typical error message with detail: %s", "No such file or directory");" This is all irrelevant because calling printf with an invalid format string has undefined behavior. -------------- 3、So I think we should find a way to get positional args  when we see it rather than visit format firstly anyway. ------------------ 原始邮件 ------------------ 发件人: "musl"