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

lib/run_part: Minor cleanups #1077

Merged
merged 6 commits into from
Sep 18, 2024
Merged

Conversation

stoeckmann
Copy link
Contributor

  • Use correct data type
  • Unify logging (at least the fprintf calls)
  • Reduce visibility of locally used function

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
lib/run_part.c Outdated Show resolved Hide resolved
lib/run_part.c Outdated Show resolved Hide resolved
Use shadow_logfd for logging instead of fixed stderr to use
shadow's own logging infrastructure.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
The run_part function is only used in run_part.c itself, so no
need to expose it to other files.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
lib/run_part.c Outdated Show resolved Hide resolved
At least if they can be assigned directly to a function call.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
lib/run_part.c Outdated Show resolved Hide resolved
Remove some of these whitespaces.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Copy link
Collaborator

@alejandro-colomar alejandro-colomar left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Alejandro Colomar <alx@kernel.org>

I'll let someone else merge. Thanks!

Copy link
Collaborator

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

Two minor comments. Once those are fixed I'll proceed to merge.

lib/run_part.c Outdated Show resolved Hide resolved
lib/run_part.c Outdated Show resolved Hide resolved
Copy link
Collaborator

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for the patches

@ikerexxe ikerexxe merged commit dd6cddd into shadow-maint:master Sep 18, 2024
9 checks passed
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.

3 participants