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

log: enum qb_log_target_slot introduction + qblog.h cleanup #181

Merged
merged 7 commits into from
Feb 22, 2016

Conversation

jnpkrn
Copy link
Contributor

@jnpkrn jnpkrn commented Feb 15, 2016

No description provided.

Amongst other uses, this allows for better (fixed) documentation
regarding how many additional logging targets the user can define.
Also use the new enum qb_log_target_slot type in for-loops together
with a proper substitute for the literal "0" initializer.

There could be more places that might be type-substituted for this enum
(and hence possibly catch more of an incorrect usage if the compiler
or checker has some notion of enum type narrowing), but leave it as
a possible enhancement for now.
@jnpkrn jnpkrn force-pushed the log-target-slot-enum branch from 328495d to 595c8a2 Compare February 16, 2016 13:51
@jnpkrn jnpkrn changed the title log: enum qb_log_target_slot introduction log: enum qb_log_target_slot introduction + qblog.h cleanup Feb 16, 2016
@jnpkrn jnpkrn force-pushed the log-target-slot-enum branch from 595c8a2 to 3496fcf Compare February 16, 2016 16:56
Also add missing "stdout" to the enumerations of the static ones.
It doesn't matter that also syslog is disabled first, as it will get
enabled few lines later on (uniformity + simplicity > optimization +
complexity).
- use semicolons at the end of the description
- use commas when there can be an issue with parsing a long sentence
  (and wrap such text at 79 characters if applicable)
@jnpkrn jnpkrn force-pushed the log-target-slot-enum branch from 3496fcf to 837108b Compare February 16, 2016 17:10
chrissie-c added a commit that referenced this pull request Feb 22, 2016
log: enum qb_log_target_slot introduction + qblog.h cleanup
@chrissie-c chrissie-c merged commit 7b9b72e into ClusterLabs:master Feb 22, 2016
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