diff options
author | Tim van der Molen <tim@cvs.openbsd.org> | 2015-11-26 08:10:43 +0000 |
---|---|---|
committer | Tim van der Molen <tim@cvs.openbsd.org> | 2015-11-26 08:10:43 +0000 |
commit | 9354e57444cd72254996f7b453c4fc24c50bb612 (patch) | |
tree | d44be22bb9c4f985fe30db22f2305cb809649641 /sbin/fdisk/misc.c | |
parent | 2c39a9aa91c61e5aea9160efcfc506595604aa01 (diff) |
When prompting for an LBA, show the min and max values in the prompt; OK krw@
Diffstat (limited to 'sbin/fdisk/misc.c')
-rw-r--r-- | sbin/fdisk/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/fdisk/misc.c b/sbin/fdisk/misc.c index 0203b17a0d7..4014ad26986 100644 --- a/sbin/fdisk/misc.c +++ b/sbin/fdisk/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.59 2015/11/21 16:45:41 krw Exp $ */ +/* $OpenBSD: misc.c,v 1.60 2015/11/26 08:10:42 tim Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -221,7 +221,8 @@ getuint64(char *prompt, u_int64_t oval, u_int64_t minval, u_int64_t maxval) secpercyl = disk.sectors * disk.heads; do { - printf("%s: [%llu] ", prompt, oval); + printf("%s [%llu - %llu]: [%llu] ", prompt, minval, maxval, + oval); if (string_from_line(buf, sizeof(buf))) errx(1, "eof"); |