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

c++: Fix pvalue stream operator to call fpga get #76

Merged
merged 1 commit into from
Dec 5, 2017

Conversation

r-rojo
Copy link
Contributor

@r-rojo r-rojo commented Dec 5, 2017

When the stream operator is called on a pvalue struct or a guid_t
struct, its copied value may not be an accurate reflection of the
property stored in its fpga_properties* member variable props_

This updates the << operator to use the approprate getter function
(get_ for pvalue or fpgaPropertiesGetGUID for guid_t) to get
the value from its fpga_properties* member, props_.

When the stream operator is called on a pvalue struct or a guid_t
struct, its copied value may not be an accurate reflection of the
property stored in its `fpga_properties*` member variable `props_`

This updates the `<<` operator to use the approprate getter function
(`get_` for `pvalue` or `fpgaPropertiesGetGUID` for `guid_t`) to get
the value from its `fpga_properties*` member, `props_`.
@r-rojo r-rojo self-assigned this Dec 5, 2017
Copy link
Contributor

@tswhison tswhison left a comment

Choose a reason for hiding this comment

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

Good catch.

@r-rojo r-rojo merged commit 8efa91a into feature/c++ Dec 5, 2017
@r-rojo r-rojo deleted the rrojo/pvalue-stream branch December 16, 2017 06:41
tswhison added a commit that referenced this pull request Sep 10, 2020
60b2ade opae-cxx: fix issue found by checker (#82)
c3c2710 Fix issues identified by checkers. (#81)
07b1a98 Improve malloc error handling in xfpga_fpgaOpen (#76)
8eb328a A static analysis check (#75)

git-subtree-dir: opae-libs
git-subtree-split: 60b2ade
anandaravuri added a commit that referenced this pull request Sep 18, 2020
ada8bd1 Merge pull request #85 from OPAE/aravuri/fix_subrepo
6c85e53 opae-libs: update cmaklist tag to release branch
38c747d Merge pull request #84 from OPAE/aravuri/fix_ver
7e40e35 opae-sdk: update opae release version to 2.0
2fa56e6 opae-cxx: fix coding style (#83)
60b2ade opae-cxx: fix issue found by checker (#82)
c3c2710 Fix issues identified by checkers. (#81)
07b1a98 Improve malloc error handling in xfpga_fpgaOpen (#76)
8eb328a A static analysis check (#75)

git-subtree-dir: opae-libs
git-subtree-split: ada8bd1
r-rojo pushed a commit that referenced this pull request Oct 11, 2021
The openclose open_06 test simulated malloc failures show
that malloc failures in wsid_tracker_init need to be handled.
So check the returns and cleanup on failures.

Signed-off-by: Tom Rix <trix@redhat.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants