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 conflicting module options with -d (and other cleanup) #154

Merged
merged 4 commits into from
Dec 19, 2023

Conversation

grondo
Copy link
Member

@grondo grondo commented Dec 19, 2023

This PR adapts @erikja's proposal in #142, but only emits the messages with the -d option.

The manpages are also updated with an expanded description of the -d option.

Some cleanup is tacked on as well - suppressing some warnings and also removing all the annoying trailing whitespace in the codebase.

grondo and others added 4 commits December 19, 2023 09:41
Problem: If a module is loaded with a conflicting option, then the
option is silently ignored, which could lead to confusion in some cases.

Log conflicting module options in debug mode (-d).

Co-authored-by: Erik Jacobson <erik.jacobson@hpe.com>
Problem: The -d option now enables the display of module loading
errors, but this is undocumented.

Add text to pdsh.1 and pdcp.1 describing this new feature.
Problem: There's a surfeit of trailing whitespace in the pdsh codebase.

Remove trailing whitespace in all .c and .h files.
Problem: Modern compilers warn of possible truncation in calls to
strncpy(3) in the pdsh codebase.

Fix the warnings in hostlist.c and wcoll.c by reducing the size to
copy by one character.
Copy link
Member

@garlick garlick left a comment

Choose a reason for hiding this comment

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

LGTM FWIW!

@grondo
Copy link
Member Author

grondo commented Dec 19, 2023

Thanks! I forgot mergify is configured here, so I'll see if MWP works.

@grondo grondo added the merge-when-passing Let mergify auto-rebase and merge when CI passes label Dec 19, 2023
@grondo
Copy link
Member Author

grondo commented Dec 19, 2023

@Mergifyio refresh

Copy link
Contributor

mergify bot commented Dec 19, 2023

refresh

✅ Pull request refreshed

@mergify mergify bot merged commit f0ef614 into chaos:master Dec 19, 2023
9 checks passed
@grondo grondo deleted the updates branch December 19, 2023 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-when-passing Let mergify auto-rebase and merge when CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants