From: 847567161 <847567161@qq.com>
To: musl <musl@lists.openwall.com>
Subject: [musl] Question: Why vfprintf call twice printf_core?
Date: Sat, 6 May 2023 11:29:36 +0800 [thread overview]
Message-ID: <tencent_78DED1C65E5C5DF08830E6F3251C6BFC4F06@qq.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 480 bytes --]
Hello,
I'm analyzing vfprintf performance, I don't know why musl call "printf_core(0, fmt, &ap2, nl_arg, nl_type)" here. Could you tell me the reason?https://gitee.com/openharmony/third_party_musl/blob/master/src/stdio/vfprintf.c#L668More info: I use gdb to debug vfprintf , I found it return directly when calling printf_core firstly which file parameter is 0.https://gitee.com/openharmony/third_party_musl/blob/master/src/stdio/vfprintf.c#L526Best Regards Chuang Yin
[-- Attachment #2: Type: text/html, Size: 2425 bytes --]
next reply other threads:[~2023-05-06 3:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-06 3:29 847567161 [this message]
2023-05-06 3:53 ` Markus Wichmann
2023-05-06 5:24 ` =?gb18030?B?ODQ3NTY3MTYx?=
2023-05-06 6:25 ` Markus Wichmann
2023-05-06 17:55 ` NRK
2023-05-07 1:17 ` Rich Felker
2023-05-07 1:44 ` [musl] =?gb18030?B?u9i4tKO6IFttdXNsXSBRdWVzdGlvbjogV2h5IHZmcHJpbnRmIGNhbGwgdHdpY2UgcHJpbnRmX2NvcmU/?= =?gb18030?B?ODQ3NTY3MTYx?=
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_78DED1C65E5C5DF08830E6F3251C6BFC4F06@qq.com \
--to=847567161@qq.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).