Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2012 13:48:10 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Eitan Adler <eadler@freebsd.org>, Colin Percival <cperciva@freebsd.org>
Subject:   Re: svn commit: r230125 - head/sys/kern
Message-ID:  <201201171348.10192.jhb@freebsd.org>
In-Reply-To: <4F15AFE2.8000600@FreeBSD.org>
References:  <201201150709.q0F79Iif067938@svn.freebsd.org> <CAF6rxgngOduQCn_J2bFkn3ExwWbMkbxNbBvqfsWyf3EkNaGrXw@mail.gmail.com> <4F15AFE2.8000600@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, January 17, 2012 12:29:06 pm Andriy Gapon wrote:
> on 17/01/2012 19:12 Eitan Adler said the following:
> > To me seeing "(null)" from the output of printf indicates "There is a
> > bug here, printf should never be given a NULL argument.".
> > However, given that it isn't undefined here, and the objections I've
> > received I will revert this part of the change when I get home.
> 
> Would this be worth the hassle now that the change is already committed?

Probably not, though at some point if the printf is reworked for some other
reason it could be removed then.  I don't think we need to add more special
case handling for NULL string pointers passed to kernel printf in the future,
however.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201171348.10192.jhb>