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

Please provide va_list variants of variadic functions #249

Open
skliper opened this issue Sep 30, 2019 · 3 comments
Open

Please provide va_list variants of variadic functions #249

skliper opened this issue Sep 30, 2019 · 3 comments

Comments

@skliper
Copy link
Contributor

skliper commented Sep 30, 2019

I've recently encountered a need to conditionally call CFE_EVS_SendEvent or CFE_ES_WriteToSysLog depending on the app's status. Unfortunately, both of these functions are variadic functions, and they can't easily be wrapped in another variadic function.

The C standard library provides variants of its variadic functions that take a va_list. For example, printf has the vprintf variant.

Please provide similar variants for cFE's variadic functions. The implementation would be simple: the majority of the function's logic can reside in the va_list version, and the variadic function can become thin a wrapper around the va_list version.

@skliper skliper self-assigned this Sep 30, 2019
@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Imported from trac issue 218. Created by tflemin1 on 2017-11-03T11:25:30, last modified: 2019-03-01T15:27:58

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by tflemin1 on 2017-11-15 12:06:45:

See also [cfs_osal:193 OSAL issue 193].

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by tflemin1 on 2018-01-04 14:02:19:

Initial priority value was erroneous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant