Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2012 19:39:13 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r236487 - in head/sys: kern sys
Message-ID:  <201206021939.q52JdDMu009944@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Jun  2 19:39:12 2012
New Revision: 236487
URL: http://svn.freebsd.org/changeset/base/236487

Log:
  Fix typo [1]. Use commas to separate flag printouts, in style with
  other parts of function.
  
  Submitted by: bf [1]
  MFC after:   1 week

Modified:
  head/sys/kern/vfs_bio.c
  head/sys/sys/buf.h

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Sat Jun  2 19:30:49 2012	(r236486)
+++ head/sys/kern/vfs_bio.c	Sat Jun  2 19:39:12 2012	(r236487)
@@ -3995,7 +3995,7 @@ DB_SHOW_COMMAND(buffer, db_show_buffer)
 	}
 
 	db_printf("buf at %p\n", bp);
-	db_printf("b_flags = 0x%b b_xflags=0x%b b_vflags=0x%b\n",
+	db_printf("b_flags = 0x%b, b_xflags=0x%b, b_vflags=0x%b\n",
 	    (u_int)bp->b_flags, PRINT_BUF_FLAGS, (u_int)bp->b_xflags,
 	    PRINT_BUF_XFLAGS, (u_int)bp->b_vflags, PRINT_BUF_VFLAGS);
 	db_printf(

Modified: head/sys/sys/buf.h
==============================================================================
--- head/sys/sys/buf.h	Sat Jun  2 19:30:49 2012	(r236486)
+++ head/sys/sys/buf.h	Sat Jun  2 19:39:12 2012	(r236487)
@@ -251,7 +251,7 @@ struct buf {
 #define	BV_BKGRDWAIT	0x00000004	/* Background write waiting */
 #define	BV_INFREECNT	0x80000000	/* buf is counted in numfreebufs */
 
-#define	PRINT_BUF_VFLAGS "\20\40infreecnt\3bkrgwait\2bkgrdinprog\1scanned"
+#define	PRINT_BUF_VFLAGS "\20\40infreecnt\3bkgrdwait\2bkgrdinprog\1scanned"
 
 #ifdef _KERNEL
 /*



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