svn commit: r236487 - in head/sys: kern sys

Konstantin Belousov kib at FreeBSD.org
Sat Jun 2 19:39:13 UTC 2012


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
 /*


More information about the svn-src-all mailing list