Skip to content

GEODE-7447: Fix logging format spec <--> variable size mismatches#548

Merged
pdxcodemonkey merged 5 commits intoapache:developfrom
pdxcodemonkey:GEODE-7447-fix-logging-mismatches
Nov 15, 2019
Merged

GEODE-7447: Fix logging format spec <--> variable size mismatches#548
pdxcodemonkey merged 5 commits intoapache:developfrom
pdxcodemonkey:GEODE-7447-fix-logging-mismatches

Conversation

@pdxcodemonkey
Copy link
Copy Markdown
Contributor

  • std::chrono 'Rep' type changes size based on platform
  • when size mismatched to format spec in log call, bad things happen

Blake Bender added 2 commits November 13, 2019 10:19
- std::chrono 'Rep' type changes size based on platform
- when size mismatched to format spec in log call, bad things happen
@pdxcodemonkey
Copy link
Copy Markdown
Contributor Author

pdxcodemonkey commented Nov 13, 2019

@pdxcodemonkey pdxcodemonkey marked this pull request as ready for review November 13, 2019 19:44
@pdxcodemonkey
Copy link
Copy Markdown
Contributor Author

This has issues, closing PR for now while I diagnose

Blake Bender added 2 commits November 13, 2019 23:24
Co-authored-by Michael Oleske <moleske@pivotal.io>
- also fix up any other discrepancies found between sizeof(type) and %z
format specifier
@pdxcodemonkey pdxcodemonkey reopened this Nov 14, 2019
Copy link
Copy Markdown
Member

@moleske moleske left a comment

Choose a reason for hiding this comment

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

Glad you were able to track down all those %zs! Lesson learned from fixing those LGTM issues

Copy link
Copy Markdown
Member

@moleske moleske left a comment

Choose a reason for hiding this comment

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

whoops, glad you caught those to_strings so we can get the units labeled properly!

@pdxcodemonkey pdxcodemonkey merged commit a88247f into apache:develop Nov 15, 2019
@pdxcodemonkey pdxcodemonkey deleted the GEODE-7447-fix-logging-mismatches branch November 15, 2019 18:12
pdxcodemonkey pushed a commit to pdxcodemonkey/geode-native that referenced this pull request Nov 26, 2019
…ache#548)

* GEODE-7447: Fix logging format spec <--> variable size mismatches
- std::chrono 'Rep' type changes size based on platform
- when size mismatched to format spec in log call, bad things happen
- also fix up any other discrepancies found between sizeof(type) and %z
format specifier
- Switch calls to our to_string implementation for durations

(cherry picked from commit a88247f)
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.

2 participants