diff options
author | 2015-11-26 08:10:42 +0000 | |
---|---|---|
committer | 2015-11-26 08:10:42 +0000 | |
commit | 192e349726a154708a7b6a66e91689107852eccc (patch) | |
tree | 7487acc7b65b0b65d2b81e09cbd17f9e089d1a8b | |
parent | Fix potentially uninitialized variable. (diff) | |
download | wireguard-openbsd-192e349726a154708a7b6a66e91689107852eccc.tar.xz wireguard-openbsd-192e349726a154708a7b6a66e91689107852eccc.zip |
When prompting for an LBA, show the min and max values in the prompt; OK krw@
-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"); |