Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/edlabel Fix number of parameters in a usage printf. Not...



details:   https://anonhg.NetBSD.org/src/rev/1946f7c34fc8
branches:  trunk
changeset: 495729:1946f7c34fc8
user:      leo <leo%NetBSD.org@localhost>
date:      Thu Aug 03 20:05:48 2000 +0000

description:
Fix number of parameters in a usage printf. Noticed by Thomas Klausner.

diffstat:

 sbin/edlabel/edlabel.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 7065256319a7 -r 1946f7c34fc8 sbin/edlabel/edlabel.c
--- a/sbin/edlabel/edlabel.c    Thu Aug 03 19:58:55 2000 +0000
+++ b/sbin/edlabel/edlabel.c    Thu Aug 03 20:05:48 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: edlabel.c,v 1.7 1998/11/12 16:19:48 christos Exp $     */
+/*     $NetBSD: edlabel.c,v 1.8 2000/08/03 20:05:48 leo Exp $  */
 
 /*
  * Copyright (c) 1995 Gordon W. Ross
@@ -482,7 +482,8 @@
                }
                if ((c < 'a') || (c > 'q')) {
                        printf("bad input.  ");
-                       printf(modify_cmds);
+                       printf(modify_cmds, 'a' + maxpartitions - 1,
+                           scsi_fict ? " s   : standarize geometry\n" : "");
                        continue;
                }
                edit_partition(dl, c - 'a', 1);



Home | Main Index | Thread Index | Old Index