Module Name: src
Committed By: uebayasi
Date: Thu Mar 26 05:00:10 UTC 2009
Modified Files:
src/lib/libutil: snprintb.3
Log Message:
Correct the order of arguments in EXAMPLE. Bump date.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libutil/snprintb.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libutil/snprintb.3
diff -u src/lib/libutil/snprintb.3:1.11 src/lib/libutil/snprintb.3:1.12
--- src/lib/libutil/snprintb.3:1.11 Tue Dec 23 21:46:13 2008
+++ src/lib/libutil/snprintb.3 Thu Mar 26 05:00:10 2009
@@ -1,4 +1,4 @@
-.\" $NetBSD: snprintb.3,v 1.11 2008/12/23 21:46:13 wiz Exp $
+.\" $NetBSD: snprintb.3,v 1.12 2009/03/26 05:00:10 uebayasi Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd December 23, 2008
+.Dd March 26, 2009
.Dt SNPRINTB 3
.Os
.Sh NAME
@@ -190,22 +190,24 @@
.Sh EXAMPLES
Two examples of the old formatting style:
.Bd -literal -offset indent
-snprintb(buf, buflen, 3, "\e10\e2BITTWO\e1BITONE")
+snprintb(buf, buflen, "\e10\e2BITTWO\e1BITONE", 3)
\(rA "3\*[Lt]BITTWO,BITONE\*[Gt]"
-snprintb(buf, buflen, 0xe860,
+snprintb(buf, buflen,
"\e20\ex10NOTBOOT\ex0fFPP\ex0eSDVMA\ex0cVIDEO"
"\ex0bLORES\ex0aFPA\ex09DIAG\ex07CACHE"
- "\ex06IOCACHE\ex05LOOPBACK\ex04DBGCACHE")
+ "\ex06IOCACHE\ex05LOOPBACK\ex04DBGCACHE",
+ 0xe860)
\(rA "e860\*[Lt]NOTBOOT,FPP,SDVMA,VIDEO,CACHE,IOCACHE\*[Gt]"
.Ed
.Pp
An example of the new formatting style:
.Bd -literal -offset indent
-snprintb(buf, buflen, 0x800f0701,
+snprintb(buf, buflen,
"\e177\e020b\e0LSB\e0b\e1_BITONE\e0f\e4\e4NIBBLE2\e0"
"f\ex10\e4BURST\e0=\e4FOUR\e0=\exfSIXTEEN\e0"
- "b\ex1fMSB\e0\e0")
+ "b\ex1fMSB\e0\e0",
+ 0x800f0701)
\(rA "800f0701\*[Lt]LSB,NIBBLE2=0,BURST=f=SIXTEEN,MSB\*[Gt]"
.Ed
.Sh ERRORS