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

Enable printf, cat, system to have more args #1404

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

suyuee
Copy link
Contributor

@suyuee suyuee commented Jun 30, 2020

This PR enables printf, cat and system to have more than 7 arguments. It can be more user-friendly to allow any reasonable number of arguments for these builtin calls which use formatted strings. Resolves #1336.

Checklist
  • Language changes are updated in docs/reference_guide.md
  • User-visible and non-trivial changes updated in CHANGELOG.md

@suyuee suyuee force-pushed the more_args_for_printf branch 3 times, most recently from e240300 to bb2e5d4 Compare June 30, 2020 19:58
@suyuee suyuee marked this pull request as ready for review June 30, 2020 20:18
src/ast/semantic_analyser.cpp Outdated Show resolved Hide resolved
src/bpftrace.cpp Outdated Show resolved Hide resolved
src/bpftrace.cpp Outdated Show resolved Hide resolved
src/bpftrace.cpp Outdated Show resolved Hide resolved
src/bpftrace.cpp Show resolved Hide resolved
@suyuee suyuee force-pushed the more_args_for_printf branch 2 times, most recently from 19fe460 to 13359f8 Compare July 1, 2020 00:47
src/bpftrace.cpp Outdated Show resolved Hide resolved
src/bpftrace.cpp Outdated Show resolved Hide resolved
src/bpftrace.cpp Outdated Show resolved Hide resolved
src/bpftrace.cpp Outdated Show resolved Hide resolved
src/bpftrace.cpp Outdated Show resolved Hide resolved
src/bpftrace.cpp Outdated Show resolved Hide resolved
src/bpftrace.cpp Outdated Show resolved Hide resolved
@suyuee suyuee force-pushed the more_args_for_printf branch 3 times, most recently from b969a31 to ff83b75 Compare July 6, 2020 16:37
@suyuee
Copy link
Contributor Author

suyuee commented Jul 6, 2020

Conflicts Resolved.

Copy link
Member

@danobi danobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit but awesome, lgtm

src/bpftrace.cpp Outdated Show resolved Hide resolved
@danobi
Copy link
Member

danobi commented Jul 8, 2020

One more thing: can you put the non-checklist portions of the PR description in the commit message?

This enables printf, cat and system to have more than 7 arguments. It can be
more user-friendly to allow any reasonable number of arguments for these builtin
calls which use formatted strings. Resolves bpftrace#1336.
@suyuee
Copy link
Contributor Author

suyuee commented Jul 8, 2020

Sure. Already done.

@danobi danobi merged commit 7089638 into bpftrace:master Jul 8, 2020
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.

printf() only supports 7 arguments
2 participants