Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Dec 2008 11:12:22 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-geom@freebsd.org
Subject:   Re: (trivial) patch to add provider name to printed warning
Message-ID:  <gh0da6$pvt$1@ger.gmane.org>
In-Reply-To: <20081130233255.GA27667@keira.kiwi-computer.com>
References:  <20081130225805.GA27328@keira.kiwi-computer.com> <20081130233255.GA27667@keira.kiwi-computer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig9C13428631FB3CDC45ABCE8F
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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,
>=20
> D'oh, the attachment was filtered.  Here it is inline...

I can take it.

>=20
> --- 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 @@
>  	}
>  =09
>  	if (rawoffset !=3D 0 && (off_t)rawoffset !=3D 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);
> =20


--------------enig9C13428631FB3CDC45ABCE8F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFJM7iGldnAQVacBcgRAvTGAJYzhNJgXH/+ahZFCOczFSnrENbHAJ90ZaVa
xE9WmPCO7mHMavnTXEZH9Q==
=EGpr
-----END PGP SIGNATURE-----

--------------enig9C13428631FB3CDC45ABCE8F--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gh0da6$pvt$1>