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

Try to unify punctuation of messages. #16654

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tcpluess
Copy link

Motivation and Context

I noticed this just recently when I was tinkering around with one of my pools and got some ZFS error messages. It seemed to me that not all messages were formatted the same way.
Most of the error messages that are printed by the "zpool" or "zfs" commands use the common punctuation, where after a dot, there are two spaces before the capital letter of the next sentence. This is also true for most of the comments. However, there were a couple of messages that used a different punctuation, where only one space was used between the dot and the next sentence. I tried to unify the formatting of all error and info messages, such that everywhere the same punctuation is used. All comments, copyrights and so on are, of course, completely untouched, just the strings that are printed on the console, and are therefore visible to users, I have corrected in the sense that they are all using identical punctuation.
Technically for sure useless, I just noticed that not everything is formatted in the same way and thought maybe it would be nice if this was the case.

Description

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Most of the error messages that are printed by the "zpool" or "zfs" commands use
a common punctuation, where after a dot, there are *two* spaces before the
capital letter of the next sentence. However, there were a couple of messages
that used a different punctuation, where only one space was used between the dot
and the next sentence. This commit unifies error, warning and info messages to
use the same punctuation with two spaces after the dot.

Signed-off-by: Tobias Plüss <[email protected]>
Copy link
Contributor

@behlendorf behlendorf left a comment

Choose a reason for hiding this comment

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

Thanks for making a consistency pass over these messages. Can you just refresh this PR and address the style warnings it introduced.

https://github.com/openzfs/zfs/actions/runs/11350309995/job/31568414363?pr=16654

@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Oct 16, 2024
@behlendorf behlendorf added the Status: Revision Needed Changes are required for the PR to be accepted label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Code Review Needed Ready for review and testing Status: Revision Needed Changes are required for the PR to be accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants