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 #964, UtPrintx function #973

Merged

Conversation

jphickey
Copy link
Contributor

Describe the contribution
Fix the UtPrintx() routine such that the loop stops correctly. Also improves the output to print the address, not just the data.

Note if UtPrintf is used, one sees the file/line of the UtPrintx function, not the actual test location, so it is better to call
UT_BSP_DoText directly so it omits this extraneous info.

Fixes #964

Testing performed
Temporarily Update a test to use UtPrintx() -- this function was not used in any current tests -- and confirm that the output now works as expected.

Expected behavior changes
No infinite loop in UtPrintx, and also it now includes the memory address of the data, not just the data itself.

System(s) tested on
Ubuntu 20.04

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

Fix the UtPrintx() routine such that the loop stops correctly.
Also improves the output to print the address, not just the data.

Note if UtPrintf is used, one sees the file/line of the UtPrintx
function, not the actual test location, so it is better to call
UT_BSP_DoText directly so it omits this extraneous info.
@jphickey jphickey added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Apr 27, 2021
@astrogeco
Copy link
Contributor

CCB:2021-04-28 APPROVED

@astrogeco astrogeco added CCB:Approved Indicates code review and approval by community CCB and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Apr 28, 2021
@jphickey jphickey closed this Apr 29, 2021
@jphickey jphickey deleted the fix-964-utprintx-loop branch April 29, 2021 13:21
@jphickey jphickey restored the fix-964-utprintx-loop branch April 29, 2021 17:17
@jphickey jphickey reopened this Apr 29, 2021
@jphickey
Copy link
Contributor Author

The branch was deleted by mistake, this is still needing merge

@astrogeco astrogeco changed the base branch from main to integration-candidate May 3, 2021 19:10
@astrogeco astrogeco merged commit 8a9b9ee into nasa:integration-candidate May 3, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request May 5, 2021
nasa/osal#973, UtPrintx function
nasa/osal#976, add socket shutdown implementation
astrogeco added a commit to nasa/cFS that referenced this pull request May 5, 2021
cfe v6.8.0-rc1+dev559 and osal v5.1.0-rc1+dev417

Combines:

nasa/osal#979
nasa/cFE#1481

Includes:

nasa/osal#973, UtPrintx function
nasa/osal#976, add socket shutdown implementation

nasa/cFE#1418, add ES CDS Functional test
nasa/cFE#1429, Function comment blocks
nasa/cFE#1414, Add Header Functional tests.
nasa/cFE#1415, add Current Time Functional Test
@skliper skliper added this to the 6.0.0 milestone Sep 24, 2021
@jphickey jphickey deleted the fix-964-utprintx-loop branch February 24, 2022 13:47
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why does UtPrintx have an infinite loop in it?
3 participants