NetBSD Problem Report #41436
From jruohone@gmail.com Fri May 15 17:35:13 2009
Return-Path: <jruohone@gmail.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id D135E63BAB3
for <gnats-bugs@gnats.netbsd.org>; Fri, 15 May 2009 17:35:13 +0000 (UTC)
Message-Id: <20090515173507.425BE1448D@marx.bitnet>
Date: Fri, 15 May 2009 20:35:07 +0300 (EEST)
From: Jukka Ruohonen <jruohonen@iki.fi>
Sender: a b <jruohone@gmail.com>
Reply-To: jruohonen@iki.fi
To: gnats-bugs@gnats.NetBSD.org
Subject: Incorrect reference in iic(9) man-page
X-Send-Pr-Version: 3.95
>Number: 41436
>Category: misc
>Synopsis: Incorrect reference in iic(9) man-page
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Fri May 15 17:40:01 +0000 2009
>Closed-Date: Mon May 18 12:49:24 +0000 2009
>Last-Modified: Mon May 18 12:50:02 +0000 2009
>Originator: Jukka Ruohonen
>Release: NetBSD 5.0_STABLE
>Organization:
-
>Environment:
-
>Description:
The iic(9) manual page refers to "buflen" but the listed prototypes only
contain "len".
>How-To-Repeat:
man iic
>Fix:
Either replace all references to "len" by "buflen" or correct the one
reference to "buflen" by "len". As "buflen" is used in the source code, the
following diff does the former, which I think is more articulate too.
Index: iic.9
===================================================================
RCS file: /cvsroot/src/share/man/man9/iic.9,v
retrieving revision 1.3
diff -u -p -r1.3 iic.9
--- iic.9 2 Feb 2007 07:37:06 -0000 1.3
+++ iic.9 15 May 2009 17:23:06 -0000
@@ -65,7 +65,7 @@
.Fa "const void *cmdbuf"
.Fa "size_t cmdlen"
.Fa "void *buf"
-.Fa "size_t len"
+.Fa "size_t buflen"
.Fa "int flags"
.Fc
.Ft int
@@ -163,7 +163,7 @@ flag was passed to
.Fn iic_acquire_bus ,
it must also be passed to
.Fn iic_release_bus .
-.It Fn iic_exec "ic" "op" "addr" "cmdbuf" "cmdlen" "buf" "len" "flags"
+.It Fn iic_exec "ic" "op" "addr" "cmdbuf" "cmdlen" "buf" "buflen" "flags"
Perform a series of I2C transactions on the bus.
.Fn iic_exec
initiates the operation by sending a START condition on the I2C
@@ -200,7 +200,7 @@ This is equivalent to
I2C_OP_WRITE_WITH_STOP with
.Fa cmdlen
of 1 and
-.Fa len
+.Fa buflen
of 1.
.It Fn iic_smbus_read_byte "ic" "addr" "cmd" "datap" "flags"
Perform an SMBus READ BYTE operation.
@@ -208,7 +208,7 @@ This is equivalent to
I2C_OP_READ_WITH_STOP with
.Fa cmdlen
of 1 and
-.Fa len
+.Fa buflen
of 1.
.It Fn iic_smbus_receive_byte "ic" "addr" "datap" "flags"
Perform an SMBus RECEIVE BYTE operation.
@@ -216,7 +216,7 @@ This is equivalent to
I2C_OP_READ_WITH_STOP with
.Fa cmdlen
of 0 and
-.Fa len
+.Fa buflen
of 1.
.El
.Sh CONTROLLER INTERFACE
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 18 May 2009 12:49:24 +0000
State-Changed-Why:
Committed, thanks!
From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/41436 CVS commit: src/share/man/man9
Date: Mon, 18 May 2009 12:49:11 +0000
Module Name: src
Committed By: wiz
Date: Mon May 18 12:49:11 UTC 2009
Modified Files:
src/share/man/man9: iic.9
Log Message:
Consistently use "buflen" as function argument name.
From Jukka Ruohonen in PR 41436.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man9/iic.9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.