Skip to content

Conversation

@NateThornton
Copy link
Contributor

@NateThornton NateThornton commented Dec 22, 2025

Suppress the logging macros print_info and print_debug except during "normal" output. This ensures that "json" and "binary" output formats do not include unnecessary warnings.

This was originally causing issue with create-ns command printing warnings about namespace granularity alignment when using JSON option. See issue #2993.

@NateThornton NateThornton force-pushed the normal_output_only_logging_macros branch from 1a31c4b to 0bcbcbd Compare December 22, 2025 19:03
Suppress the logging macros `print_info` and `print_debug` except
during normal output. This ensures that `json` and `binary`
output formats do not include unnecessary warnings.

This was originally causing issue with create-ns command printing
warnings about namespace granularity alignment when using JSON
option. See issue linux-nvme#2993.

Signed-off-by: Nate Thornton <[email protected]>
@NateThornton NateThornton force-pushed the normal_output_only_logging_macros branch from 0bcbcbd to 2aae8c4 Compare December 22, 2025 19:08
@NateThornton NateThornton changed the title logging: supress logging except during normal output logging: suppress logging except during normal output Dec 22, 2025
@NateThornton
Copy link
Contributor Author

Closes #2993

@igaw igaw merged commit 920ae83 into linux-nvme:master Jan 2, 2026
20 checks passed
@igaw
Copy link
Collaborator

igaw commented Jan 2, 2026

Thanks!

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