Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2002 14:25:16 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-current@FreeBSD.ORG
Cc:        Michael Class <michael_class@gmx.net>
Subject:   Re: GEOM and SCSI-cd: mount not working any more
Message-ID:  <20021007141632.Q27751-100000@gamplex.bde.org>
In-Reply-To: <20021006194948.GA70043@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 6 Oct 2002, David O'Brien wrote:

> On Sun, Oct 06, 2002 at 06:20:12PM +0200, Poul-Henning Kamp wrote:
> > Can I get you to insert printfs like the one below all places
> > in vfs_mount.c and cd9660_vfsops.c where you see it using EINVAL
> > and try to find out which particular one it is ?
> >
> > 	printf("EINVAL HERE %s %d\n", __FILE__, __LINE__):
>
> printf("EINVAL HERE %s %s %d\n", __func__, __FILE__, __LINE__);
>
> even, since we do have C99 in -current. :-)

Or printf("foo 1\n"); printf("foo 2"\n); ...  Using lots of __func,
__FILE__, __LINE bloats the source and executable without significantly
simplifying debugging, since unique strings are easy to find using
grep.  I'd like some of the standard bulky debugging interfaces to use
the caller's pc and not pass around __func__, __FILE__, __LINE__.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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