From c65289757a0394faa8ed4d89766d3b37e6a0a8ae Mon Sep 17 00:00:00 2001 From: jmc Date: Tue, 22 Jun 2021 14:51:29 +0000 Subject: [PATCH] reduce verbosity of usage(); keep it the same as SYNOPSIS, wrapped at 80w. lowercase for "usage", and add -e, which was missing; ok kettenis --- sbin/scsi/scsi.c | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c index d419c39b87b..b3861775794 100644 --- a/sbin/scsi/scsi.c +++ b/sbin/scsi/scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi.c,v 1.30 2016/06/07 01:29:38 tedu Exp $ */ +/* $OpenBSD: scsi.c,v 1.31 2021/06/22 14:51:29 jmc Exp $ */ /* $FreeBSD: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */ /* @@ -84,20 +84,11 @@ static void usage(void) { fprintf(stderr, -"Usage:\n" -"\n" -" scsi -f device -d debug_level # To set debug level\n" -" scsi -f device -m page [-P pc] # To read mode pages\n" -" scsi -f device [-v] [-s seconds] -c cmd_fmt [arg0 ... argn] # A command...\n" -" -o count out_fmt [arg0 ... argn] # EITHER (data out)\n" -" -i count in_fmt # OR (data in)\n" -"\n" -"\"out_fmt\" can be \"-\" to read output data from stdin;\n" -"\"in_fmt\" can be \"-\" to write input data to stdout;\n" -"\n" -"If debugging is not compiled in the kernel, \"-d\" will have no effect\n" - -); +"usage: scsi -f device -d debug_level\n" +" scsi -f device -m page [-e] [-P pc]\n" +" scsi -f device [-v] [-s seconds] -c cmd_fmt [arg ...]" +" -o count out_fmt\n" +" [arg ...] -i count in_fmt [arg ...]\n"); exit (1); } -- 2.20.1