Date: Sun, 30 Nov 2008 17:32:55 -0600 From: "Rick C. Petty" <rick-freebsd2008@kiwi-computer.com> To: freebsd-geom@freebsd.org Subject: Re: (trivial) patch to add provider name to printed warning Message-ID: <20081130233255.GA27667@keira.kiwi-computer.com> In-Reply-To: <20081130225805.GA27328@keira.kiwi-computer.com> References: <20081130225805.GA27328@keira.kiwi-computer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 30, 2008 at 04:58:05PM -0600, Rick C. Petty wrote: > Could someone with a commit bit (perhaps phk@) look at the following > trivial patch? It can't hurt anything, since the provider name cannot > be NULL here. Thanks, D'oh, the attachment was filtered. Here it is inline... -- Rick C. Petty --- src/sys/geom/geom_bsd.c.orig 2007-12-17 19:24:27.000000000 -0600 +++ src/sys/geom/geom_bsd.c 2008-11-30 03:09:04.000000000 -0600 @@ -136,7 +136,8 @@ } if (rawoffset != 0 && (off_t)rawoffset != ms->mbroffset) - printf("WARNING: Expected rawoffset %jd, found %jd\n", + printf("WARNING: %s expected rawoffset %jd, found %jd\n", + gp->name, (intmax_t)ms->mbroffset/dl.d_secsize, (intmax_t)rawoffset/dl.d_secsize);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081130233255.GA27667>