Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2019 22:02:30 +0000 (UTC)
From:      Doug Moore <dougm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347468 - head/sys/kern
Message-ID:  <201905102202.x4AM2U9F057356@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dougm
Date: Fri May 10 22:02:29 2019
New Revision: 347468
URL: https://svnweb.freebsd.org/changeset/base/347468

Log:
  Add a (q)uit option to the subr_blist test program.
  
  Approved by: kib (mentor)
  Differential Revision: https://reviews.freebsd.org/D20234

Modified:
  head/sys/kern/subr_blist.c

Modified: head/sys/kern/subr_blist.c
==============================================================================
--- head/sys/kern/subr_blist.c	Fri May 10 21:55:11 2019	(r347467)
+++ head/sys/kern/subr_blist.c	Fri May 10 22:02:29 2019	(r347468)
@@ -1148,13 +1148,18 @@ main(int ac, char **av)
 			    "f %x %d    -free\n"
 			    "l %x %d    -fill\n"
 			    "r %d       -resize\n"
-			    "h/?        -help"
+			    "h/?        -help\n"
+			    "q          -quit"
 			);
 			break;
+		case 'q':
+			break;
 		default:
 			printf("?\n");
 			break;
 		}
+		if (buf[0] == 'q')
+			break;
 	}
 	return (0);
 }



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