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

FreeBSD: Remove stray debug printf #14287

Merged
merged 1 commit into from
Dec 14, 2022
Merged

Conversation

dfr
Copy link
Contributor

@dfr dfr commented Dec 13, 2022

Fixes #14286.

Signed-off-by: Doug Rabson dfr@rabson.org

Motivation and Context

This removes a cryptic console printf generated when an application tries to set non-blocking i/o on a /dev/zfs file descriptor. See #14284 for a little more context.

Description

This change simply removes the printf.

How Has This Been Tested?

Built a recent FreeBSD-14-current kernel with this change and verified that the application triggering this printf no longer causes console logging side effects.

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:

Copy link
Member

@amotin amotin left a comment

Choose a reason for hiding this comment

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

I would remove braces also. And move uaddr = (void *)zp->zfs_cmd; down after the check.

Fixes openzfs#14286.

Signed-off-by: Doug Rabson <dfr@rabson.org>
@ghost ghost added the Status: Accepted Ready to integrate (reviewed, tested) label Dec 13, 2022
@behlendorf behlendorf merged commit 24502bd into openzfs:master Dec 14, 2022
andrewc12 pushed a commit to andrewc12/openzfs that referenced this pull request Dec 18, 2022
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Doug Rabson <dfr@rabson.org>
Closes openzfs#14286 
Closes openzfs#14287
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Jan 13, 2023
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Doug Rabson <dfr@rabson.org>
Closes openzfs#14286
Closes openzfs#14287
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Jan 18, 2023
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Doug Rabson <dfr@rabson.org>
Closes openzfs#14286
Closes openzfs#14287
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Jan 19, 2023
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Doug Rabson <dfr@rabson.org>
Closes openzfs#14286
Closes openzfs#14287
@dfr dfr deleted the issue-14286 branch June 13, 2023 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stray debug printf on FreeBSD
4 participants