Skip to content

Fix a few format-specifier warnings - #7012

Open
nalind wants to merge 2 commits into
podman-container-tools:mainfrom
nalind:warnings
Open

Fix a few format-specifier warnings#7012
nalind wants to merge 2 commits into
podman-container-tools:mainfrom
nalind:warnings

Conversation

@nalind

@nalind nalind commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

In a few places, we were using "%q" as a format specifier for numbers, and for enumerated types which didn't have a String() method.

How to verify it

Updated unit test!

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

@packit-as-a-service

Copy link
Copy Markdown

Ephemeral COPR build failed. @containers/packit-build please check.

@Luap99 Luap99 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is a linter for this but I guess %q is technically valid and thus not flagged?

LGTM

In a few places, we were using %q as a format specifier for numbers, and
for enumerated types which didn't have a String() method.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
…t rw

Bind mount a directory read-write if we're going to try relabeling its
contents.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
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