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

Use fmt instead of Sprintf #3041

Closed
wants to merge 2 commits into from
Closed

Use fmt instead of Sprintf #3041

wants to merge 2 commits into from

Conversation

alkino
Copy link
Member

@alkino alkino commented Aug 13, 2024

No description provided.

1uc
1uc previously approved these changes Aug 13, 2024
Copy link
Collaborator

@1uc 1uc left a comment

Choose a reason for hiding this comment

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

Neat!

Copy link

✔️ e2d7276 -> Azure artifacts URL

Copy link

sonarcloud bot commented Aug 13, 2024

Copy link

✔️ ed854d5 -> Azure artifacts URL

Copy link
Contributor

NEURON ModelDB CI: launching for ed854d5 via its drop url

Copy link

codecov bot commented Aug 13, 2024

Codecov Report

Attention: Patch coverage is 32.65306% with 33 lines in your changes missing coverage. Please review.

Project coverage is 67.28%. Comparing base (61dfd7c) to head (ed854d5).
Report is 48 commits behind head on master.

Files with missing lines Patch % Lines
src/nrnpython/nrnpy_hoc.cpp 15.38% 22 Missing ⚠️
src/nrnpython/nrnpy_p2h.cpp 40.00% 6 Missing ⚠️
src/nrnpython/nrnpy_nrn.cpp 61.53% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3041   +/-   ##
=======================================
  Coverage   67.27%   67.28%           
=======================================
  Files         571      571           
  Lines      104911   104913    +2     
=======================================
+ Hits        70579    70587    +8     
+ Misses      34332    34326    -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -49,7 +49,7 @@ static void call_python_with_section(Object* pyact, Section* sec) {
if (!r) {
char* mes = nrnpyerr_str();
if (mes) {
Fprintf(stderr, "%s\n", mes);
std::cerr << mes << std::endl;
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's not obvious from the definition of Fprinf but it does serve a purpose and using std::cerr and std::cout isn't ideal. See #3052.

@1uc 1uc dismissed their stale review August 29, 2024 08:43

Review missed the changes implied by using std::cerr.

@alkino alkino closed this Oct 4, 2024
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