From owner-freebsd-bugs Thu Apr 17 03:30:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA24200 for bugs-outgoing; Thu, 17 Apr 1997 03:30:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA24192; Thu, 17 Apr 1997 03:30:01 -0700 (PDT) Date: Thu, 17 Apr 1997 03:30:01 -0700 (PDT) Message-Id: <199704171030.DAA24192@freefall.freebsd.org> To: freebsd-bugs Cc: From: Peter Dufault Subject: Re: docs/3313: manpage bug in scsi(8) (cmd args are hex) Reply-To: Peter Dufault Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR docs/3313; it has been noted by GNATS. From: Peter Dufault To: oliver.fromme@heim3.tu-clausthal.de Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: docs/3313: manpage bug in scsi(8) (cmd args are hex) Date: Thu, 17 Apr 1997 06:08:40 -0400 (EDT) > The scsi(8) manpage fails to mention that arguments to > -c commands are specified in hexadecimal. The "examples" > section in that manpage also seems to use decimal values, > which is wrong. The arguments are parsed using strtol with a base of zero and so can be decimal (default) or hex (leading 0x). The confusing part is that the numbers INSIDE a format string are hex unconditionally to make it easy to copy commands from the spec. Peter -- Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936