Source-Changes-HG archive

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

[src/trunk]: src/share/man/man3 - DPRINTF(("val is %d\n", val)); -> DPRINTF((...



details:   https://anonhg.NetBSD.org/src/rev/0d2f46819a46
branches:  trunk
changeset: 790560:0d2f46819a46
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Thu Oct 17 19:37:56 2013 +0000

description:
- DPRINTF(("val is %d\n", val)); -> DPRINTF(("val is %d\n", var));
- mdoclint:
  - .Nd should not end with period
  - remove trailing spaces

diffstat:

 share/man/man3/__USE.3 |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r 5157ff28fbfe -r 0d2f46819a46 share/man/man3/__USE.3
--- a/share/man/man3/__USE.3    Thu Oct 17 18:10:23 2013 +0000
+++ b/share/man/man3/__USE.3    Thu Oct 17 19:37:56 2013 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: __USE.3,v 1.1 2013/10/17 16:50:36 christos Exp $
+.\"    $NetBSD: __USE.3,v 1.2 2013/10/17 19:37:56 jnemeth Exp $
 .\"
 .\" Copyright (c) 2013 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -29,7 +29,7 @@
 .Os
 .Sh NAME
 .Nm __USE
-.Nd compile time macro that marks a variable as being used.
+.Nd compile time macro that marks a variable as being used
 .Sh SYNOPSIS
 .In sys/cdefs.h
 .Ft void
@@ -54,7 +54,7 @@
 
        var = getval();
 
-       DPRINTF(("val is %d\n", val));
+       DPRINTF(("val is %d\n", var));
 }
 .Ed
 .Pp
@@ -67,7 +67,7 @@
 
        var = getval();
 
-       DPRINTF(("val is %d\n", val));
+       DPRINTF(("val is %d\n", var));
 #else
        (void)getval();
 #endif
@@ -86,7 +86,7 @@
        var = getval();
 
 #ifdef DEBUG_FOO
-       DPRINTF(("val is %d\n", val));
+       DPRINTF(("val is %d\n", var));
 #else
        __USE(var);
 #endif
@@ -117,6 +117,6 @@
 should be used sparingly as it can cause valid warnings to be hidden.
 .Pp
 Use of this macro is non-portable; this is part of the implementation
-namespace and should only be used in 
+namespace and should only be used in
 .Nx
 code.



Home | Main Index | Thread Index | Old Index