Skip to content

src: enhance C++ sprintf utility#32385

Closed
himself65 wants to merge 1 commit intonodejs:masterfrom
himself65:20200320-debug
Closed

src: enhance C++ sprintf utility#32385
himself65 wants to merge 1 commit intonodejs:masterfrom
himself65:20200320-debug

Conversation

@himself65
Copy link
Copy Markdown
Member

fix #32370

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Mar 20, 2020
@himself65 himself65 changed the title [WIP]src: enhance debug string format [WIP]src: enhance C++ sprintf utility Mar 20, 2020
@himself65 himself65 force-pushed the 20200320-debug branch 2 times, most recently from 43287bc to 658075e Compare March 20, 2020 08:32
@himself65 himself65 changed the title [WIP]src: enhance C++ sprintf utility src: enhance C++ sprintf utility Mar 20, 2020
@himself65 himself65 force-pushed the 20200320-debug branch 4 times, most recently from ddba87b to f363ae5 Compare March 20, 2020 09:23
Comment thread src/debug_utils-inl.h Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don’t think you need to do any templating for T, any value that’s passed to a function like this will be convertible to unsigned long long anyway.

Copy link
Copy Markdown
Member Author

@himself65 himself65 Mar 20, 2020

Choose a reason for hiding this comment

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

Comment thread src/debug_utils-inl.h Outdated
Comment thread src/debug_utils-inl.h Outdated
Copy link
Copy Markdown
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

Looks good, although it’s probably much simpler to go the %p route and just let the system snprintf do the work.

Comment thread src/debug_utils-inl.h Outdated
@himself65
Copy link
Copy Markdown
Member Author

@gabrielschulhof
Copy link
Copy Markdown
Contributor

@himself65 I restarted the Travis job.

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

nodejs-github-bot commented Mar 25, 2020

gabrielschulhof pushed a commit that referenced this pull request Mar 26, 2020
PR-URL: #32385
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
@gabrielschulhof
Copy link
Copy Markdown
Contributor

Landed in dade90d.

@himself65 himself65 deleted the 20200320-debug branch March 26, 2020 02:48
MylesBorins pushed a commit that referenced this pull request Mar 26, 2020
PR-URL: #32385
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Mar 26, 2020
@addaleax addaleax mentioned this pull request Mar 29, 2020
2 tasks
@himself65 himself65 mentioned this pull request Mar 30, 2020
2 tasks
targos pushed a commit that referenced this pull request Apr 22, 2020
PR-URL: #32385
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

node::Debug does not understand %x

6 participants