Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2009 16:30:47 +0200
From:      Oliver Pinter <oliver.pntr@gmail.com>
To:        freebsd-stable <freebsd-stable@freebsd.org>
Cc:        src-committers@freebsd.org
Subject:   Re: fix ntpd man page
Message-ID:  <6101e8c40908250730s33d2ae68yad2c91fb21a619b9@mail.gmail.com>
In-Reply-To: <6101e8c40908242029v28ab946fq8385ffaec97c58d3@mail.gmail.com>
References:  <6101e8c40908242029v28ab946fq8385ffaec97c58d3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
please drop the 20090825051910-ntpd_man_fix.diff patch,
and use this: 20090825161558-ntpd_man_debug_fix.diff (attached)

this attached patch fixed the documented man options, and runs correct:

--8<--

# ntpd -dddddddd
ntpd 4.2.4p5-a Tue Aug 25 16:18:59 CEST 2009 (1)
adding new filegen
adding new filegen
adding new filegen
adding new filegen
adding new filegen
adding new filegen
addto_syslog: set_process_priority: Leave priority alone: priority_done is <2>
addto_syslog: precision = 0.698 usec
create_sockets(123)
addto_syslog: ntp_io: estimated max descriptors: 11095, initial socket boundary:
 20
addto_syslog: bind() fd 20, family 2, port 123, addr 0.0.0.0, in_classd=0 flags=
0x89 fails: Address already in use
addto_syslog: unable to bind to wildcard socket address 0.0.0.0 - another proces
s may be running - EXITIN

--8<--

On 8/25/09, Oliver Pinter <oliver.pntr@gmail.com> wrote:
> Hi all!
>
>  It's one more fix to ntp program set, ntpd man page for freebsd 7-stable.
>

[-- Attachment #2 --]
commit 18001be3bcb3f48f77d87502373f4dbc4683c1dd
Author: opv <opv@oliverp.teteny.bme.hu>
Date:   Tue Aug 25 16:15:58 2009 +0200

    fix ntpq -d options
    
    add -DDEBUG as the header say...

	#ifdef DEBUG
	#define VALUE_OPT_DEBUG_LEVEL    'd'
	#endif /* DEBUG */
	#ifdef DEBUG
	#define VALUE_OPT_SET_DEBUG_LEVEL 'D'
	#endif /* DEBUG */

    after this patch, the ntpq running as the man say
    
    Signed-off-by : Oliver Pinter <oliverp@teteny.bme.hu>

diff --git a/usr.sbin/ntp/Makefile.inc b/usr.sbin/ntp/Makefile.inc
index f81905a..71e2a57 100644
--- a/usr.sbin/ntp/Makefile.inc
+++ b/usr.sbin/ntp/Makefile.inc
@@ -2,7 +2,7 @@
 
 .include <bsd.own.mk>
 
-DEFS_LOCAL= -DPARSE -DHAVE_CONFIG_H
+DEFS_LOCAL= -DPARSE -DHAVE_CONFIG_H -DDEBUG
 NTPDEFS=   -DSYS_FREEBSD
 # CLOCKDEFS=
 #	-DLOCAL_CLOCK -DPST -DWWVB -DAS2201 -DGOES -DGPSTM -DOMEGA \

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6101e8c40908250730s33d2ae68yad2c91fb21a619b9>