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

Fix #50, add printf conversion casts #51

Merged

Conversation

jphickey
Copy link
Contributor

Describe the contribution
Cast ssize_t to long and uint32 to unsigned long for printf. This matches the %d and %lX conversions, respectively.

Fixes #50

Testing performed
Build tblCRCtool as normal, ensure no errors

Expected behavior changes
Should now build successfully if ssize_t and long are not the same type.

System(s) tested on
Ubuntu

Additional context
Should be tested with RPI4 toolchain that originally had the error

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

Cast ssize_t to long and uint32 to unsigned long for printf.
This matches the %d and %lX conversions, respectively.
@jphickey
Copy link
Contributor Author

Ping @mkressel, can you apply this patch and confirm if it fixes the error you saw with your RPI4 toolchain?

@mkressel
Copy link

Yes, it fixes the error. It compiled successfully on the RPI4 with this patch. Thank you!

@skliper skliper added this to the 1.3.0 milestone Jun 15, 2021
@skliper skliper self-requested a review June 15, 2021 13:14
@skliper
Copy link
Contributor

skliper commented Jun 15, 2021

Approved - requesting fasttrack.

@astrogeco astrogeco changed the base branch from main to integration-candidate June 15, 2021 19:19
@astrogeco astrogeco merged commit d8b6ffc into nasa:integration-candidate Jun 15, 2021
@astrogeco astrogeco added the CCB:Approved Indicates approval by CCB label Jun 16, 2021
@astrogeco
Copy link
Contributor

CCB:2021-06-16 APPROVED

astrogeco added a commit to nasa/cFS that referenced this pull request Jun 23, 2021
nasa/cFS-GroundSystem#182, Add test start command script for cmdUtil
nasa/tblCRCTool#51, add printf conversion casts

**Coding Standard**

tblCRCTool#49, Implement Coding Standard in CodeQL
nasa/cFS-GroundSystem#180, Implement Coding Standard in CodeQL
astrogeco added a commit to nasa/cFS that referenced this pull request Jun 24, 2021
*Combines*

- nasa/elf2cfetbl#81
- nasa/tblCRCTool#52
- nasa/ci_lab#88
- nasa/sch_lab#83
- nasa/sample_app#150
- nasa/sample_lib#64
- nasa/to_lab#100

*Includes*

- nasa/cFE#1630, correct path to users guide warning log
- nasa/cFE#1621, add additional test cases for Child Tasks
- nasa/cFE#1608, Add cfe functional tests to CI
- nasa/cFE#1627, rename/clean CFE coverage assert macros
- nasa/cFE#1623, Added UT tests for cFE ES Api
- nasa/cFE#1634, Expand CDS Functional Tests.
- nasa/cFE#1633, add test log file
- nasa/cFE#1594, Event ID updates
- nasa/cFE#1624, scrub all UT_Report calls

- nasa/osal#1066, implement missing parameter/retcode test permutations

- nasa/cFS-GroundSystem#182, Add test start command script for cmdUtil
- nasa/tblCRCTool#51, add printf conversion casts

** Implement Coding Standard in CodeQL **

- nasa/cFS-GroundSystem#180
- nasa/elf2cfetbl#80
- nasa/tblCRCTool#49

- nasa/ci_lab#87
- nasa/sch_lab#79
- nasa/sample_app#149
- nasa/sample_lib#63
- nasa/to_lab#99
astrogeco added a commit to nasa/cFS that referenced this pull request Jun 24, 2021
*Combines*

- nasa/cFE#1632, v6.8.0-rc1+dev726
- nasa/osal#1079, v5.1.0-rc1+dev548

- nasa/ci_lab#88, v2.4.0-rc1+dev42
- nasa/sch_lab#83, v2.4.0-rc1+dev40
- nasa/sample_app#150, v1.2.0-rc1+dev66
- nasa/sample_lib#64, v1.2.0-rc1+dev38
- nasa/to_lab#100, v2.4.0-rc1+dev49

- nasa/elf2cfetbl#81, v3.2.0-rc1+dev30
- nasa/tblCRCTool#52, v1.2.0-rc1+dev33
- nasa/cFS-GroundSystem#183, v2.2.0-rc1+dev52

*Includes*

- nasa/cFE#1630, correct path to users guide warning log
- nasa/cFE#1621, add additional test cases for Child Tasks
- nasa/cFE#1608, Add cfe functional tests to CI
- nasa/cFE#1627, rename/clean CFE coverage assert macros
- nasa/cFE#1623, Added UT tests for cFE ES Api
- nasa/cFE#1634, Expand CDS Functional Tests.
- nasa/cFE#1633, add test log file
- nasa/cFE#1594, Event ID updates
- nasa/cFE#1624, scrub all UT_Report calls

- nasa/osal#1066, implement missing parameter/retcode test permutations

- nasa/cFS-GroundSystem#182, Add test start command script for cmdUtil
- nasa/tblCRCTool#51, add printf conversion casts

** Implement Coding Standard in CodeQL **

- nasa/cFS-GroundSystem#180
- nasa/elf2cfetbl#80
- nasa/tblCRCTool#49

- nasa/ci_lab#87
- nasa/sch_lab#79
- nasa/sample_app#149
- nasa/sample_lib#63
- nasa/to_lab#99

Co-authored-by: Jacob Hageman <skliper@users.noreply.github.com>
Co-authored-by: Joseph Hickey <jphickey@users.noreply.github.com>
Co-authored-by: Ariel Adams <ArielSAdamsNASA@users.noreply.github.com>
Co-authored-by: Alex Campbell <zanzaben@users.noreply.github.com>
Co-authored-by: Jose F Martinez Pedraza <pepepr08@users.noreply.github.com>
@jphickey jphickey deleted the fix-50-add-printf-cast branch October 6, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates approval by CCB CCB:FastTrack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RPI4 compile error
4 participants