diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-08-05 21:40:15 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-08-05 21:40:15 +0000 |
commit | c6e43ca6e9703a86a8cf3d80d54d41d2a2c7868c (patch) | |
tree | 4fd193ab06ade72e89fa5c20786010a7c8e26426 /sbin/edlabel | |
parent | 38474554ca0058774b3627a49ac7005b704ea9eb (diff) |
Fix number of parameters in a usage printf, and correct a typo. Noticed by
Thomas Klausner in NetBSD.
Diffstat (limited to 'sbin/edlabel')
-rw-r--r-- | sbin/edlabel/edlabel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/edlabel/edlabel.c b/sbin/edlabel/edlabel.c index e61d77089ab..c6f08df97ee 100644 --- a/sbin/edlabel/edlabel.c +++ b/sbin/edlabel/edlabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edlabel.c,v 1.4 1996/07/27 10:28:42 deraadt Exp $ */ +/* $OpenBSD: edlabel.c,v 1.5 2000/08/05 21:40:14 pjanzen Exp $ */ /* $NetBSD: edlabel.c,v 1.1.1.1 1995/10/08 22:39:09 gwr Exp $ */ /* @@ -442,7 +442,7 @@ label_modify(dl, dn) scsi_fict = 1; printf(modify_cmds, 'a' + maxpartitions, - scsi_fict ? " s : standarize geometry\n" : ""); + scsi_fict ? " s : standardize geometry\n" : ""); for (;;) { printf("edlabel/modify> "); fflush(stdout); @@ -464,7 +464,8 @@ label_modify(dl, dn) } if ((c < 'a') || (c > 'q')) { printf("bad input. "); - printf(modify_cmds); + printf(modify_cmds, 'a' + maxpartitions, + scsi_fict ? " s : standardize geometry\n" : ""); continue; } edit_partition(dl, c - 'a', 1); |