Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc/stdio: add total_len back #7770

Merged
merged 1 commit into from
Dec 4, 2022
Merged

Conversation

jihandong
Copy link
Contributor

@jihandong jihandong commented Dec 4, 2022

Summary

"The number of characters written if successful or negative value if an error occurred. If the resulting string gets truncated due to buf_size limit, function returns the total number of characters (not including the terminating null-byte) which would have been written, if the limit was not imposed." --- https://en.cppreference.com/w/c/io/vfprintf

Regression in #7700

Impact

vprint api behavior change.

Testing

@jihandong jihandong force-pushed the topic-1204 branch 2 times, most recently from dd69098 to fbc0ed1 Compare December 4, 2022 07:52
"The number of characters written if successful or negative value if an error occurred.
If the resulting string gets truncated due to buf_size limit, function returns the total
number of characters (not including the terminating null-byte) which would have been written,
if the limit was not imposed." --- https://en.cppreference.com/w/c/io/vfprintf

Signed-off-by: jihandong <jihandong@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 965566d into apache:master Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants