(trivial) patch to add provider name to printed warning

Rick C. Petty rick-freebsd2008 at kiwi-computer.com
Sun Nov 30 15:32:56 PST 2008


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);
 


More information about the freebsd-geom mailing list