(trivial) patch to add provider name to printed warning
Ivan Voras
ivoras at freebsd.org
Mon Dec 1 02:12:40 PST 2008
Rick C. Petty wrote:
> 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...
I can take it.
>
> --- 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);
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20081201/4c7000c1/signature.pgp
More information about the freebsd-geom
mailing list