Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2018 11:32:14 +0100
From:      =?UTF-8?B?UGludMOpciwgT2xpdsOpcg==?= <oliver.pinter@balabit.com>
To:        Kirk McKusick <mckusick@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   Re: svn commit: r328946 - stable/10/sys/kern
Message-ID:  <CAGbp8UswQmq6M5pVnu%2B_h-oWxkCrjhp9gqMGJ7XsqRh%2BFODgpQ@mail.gmail.com>
In-Reply-To: <201802061914.w16JEr5K047679@repo.freebsd.org>
References:  <201802061914.w16JEr5K047679@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 6, 2018 at 8:14 PM, Kirk McKusick <mckusick@freebsd.org> wrote:

> Author: mckusick
> Date: Tue Feb  6 19:14:53 2018
> New Revision: 328946
> URL: https://svnweb.freebsd.org/changeset/base/328946
>
> Log:
>   MFC of 328643.
>
>   fix vn_printf listing of its union
>
> Modified:
>   stable/10/sys/kern/vfs_subr.c
> Directory Properties:
>   stable/10/   (props changed)
>
> Modified: stable/10/sys/kern/vfs_subr.c
> ============================================================
> ==================
> --- stable/10/sys/kern/vfs_subr.c       Tue Feb  6 19:14:15 2018
> (r328945)
> +++ stable/10/sys/kern/vfs_subr.c       Tue Feb  6 19:14:53 2018
> (r328946)
> @@ -3020,8 +3020,25 @@ vn_printf(struct vnode *vp, const char *fmt, ...)
>         va_end(ap);
>         printf("%p: ", (void *)vp);
>         printf("tag %s, type %s\n", vp->v_tag, typename[vp->v_type]);
> -       printf("    usecount %d, writecount %d, refcount %d mountedhere
> %p\n",
> -           vp->v_usecount, vp->v_writecount, vp->v_holdcnt,
> vp->v_mountedhere);
> +       printf("    usecount %d, writecount %d, refcount %d",
> +           vp->v_usecount, vp->v_writecount, vp->v_holdcnt);
> +       switch (vp->v_type) {
> +       case VDIR:
> +               printf(" mountedhere %p\n", vp->v_mountedhere);
> +               break;
> +       case VCHR:
> +               printf(" rdev %p\n", vp->v_rdev);
> +               break;
> +       case VSOCK:
> +               printf(" socket %p\n", vp->v_unpcb);
> +               break;
>

Hi!

Could you please cherry-pick r328961 here too?


> +       case VFIFO:
> +               printf(" fifoinfo %p\n", vp->v_fifoinfo);
> +               break;
> +       default:
> +               printf("\n");
> +               break;
> +       }
>         buf[0] = '\0';
>         buf[1] = '\0';
>         if (vp->v_vflag & VV_ROOT)
> _______________________________________________
> svn-src-stable-10@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
> To unsubscribe, send any mail to "svn-src-stable-10-
> unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGbp8UswQmq6M5pVnu%2B_h-oWxkCrjhp9gqMGJ7XsqRh%2BFODgpQ>