Re: svn commit: r228719 - head/usr.sbin/timed/timed

2011-12-19 Thread Bruce Evans
On Mon, 19 Dec 2011, Dimitry Andric wrote: Log: Some people pointed out long is 32-bit on some arches, while time_t is 64-bit, so better cast time_t to intmax_t, and use the appropriate printf format strings. Some pointed out that long is adequate. It works on all arches until 2038. It wo

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-12-19 Thread Bruce Evans
On Mon, 19 Dec 2011, Warner Losh wrote: On Nov 29, 2011, at 1:53 PM, Garrett Cooper wrote: 2011/11/29 Doug Barton : On 11/29/2011 12:47, G?bor K?vesd?n wrote: On 2011.11.29. 20:46, Max Khon wrote: Log: Turn off profiled libs build by default. Can be enabled back using WITH_PROFILE=yes

Re: svn commit: r228713 - head/contrib/tcpdump

2011-12-19 Thread Wesley Shields
On Mon, Dec 19, 2011 at 05:32:55PM +, Dimitry Andric wrote: > Author: dim > Date: Mon Dec 19 17:32:54 2011 > New Revision: 228713 > URL: http://svn.freebsd.org/changeset/base/228713 > > Log: > In contrib/tcpdump/print-icmp6.c, fix a problem where the comparison > against icmp6_hdr::icmp6_t

svn commit: r228729 - head/sys/dev/gpio

2011-12-19 Thread Adrian Chadd
Author: adrian Date: Tue Dec 20 03:25:11 2011 New Revision: 228729 URL: http://svn.freebsd.org/changeset/base/228729 Log: Fix broken locking that I introduced in the previous commit. Modified: head/sys/dev/gpio/gpioiic.c Modified: head/sys/dev/gpio/gpioiic.c =

svn commit: r228728 - head/sys/dev/iicbus

2011-12-19 Thread Adrian Chadd
Author: adrian Date: Tue Dec 20 02:49:01 2011 New Revision: 228728 URL: http://svn.freebsd.org/changeset/base/228728 Log: IIC bitbang changes - prepare to make the bit delay configurable; debug print changes. * Right now the delay is hard coded at 10uS. This is a bit long when doing lots

svn commit: r228727 - head/sys/dev/sound/pci/hda

2011-12-19 Thread Alexander Motin
Author: mav Date: Tue Dec 20 02:42:53 2011 New Revision: 228727 URL: http://svn.freebsd.org/changeset/base/228727 Log: Oops, list of IDs is not sequential. Have to list all of them expoicitly. Modified: head/sys/dev/sound/pci/hda/hdac.c Modified: head/sys/dev/sound/pci/hda/hdac.c ===

svn commit: r228726 - head/sys/dev/sound/pci/hda

2011-12-19 Thread Alexander Motin
Author: mav Date: Tue Dec 20 02:00:27 2011 New Revision: 228726 URL: http://svn.freebsd.org/changeset/base/228726 Log: Cast some vendor-specific spell on VIA VT1708S codecs to: - make analog input loopback work; - get access to the mics boost controls. Sponsored by: iXsystems, Inc.

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-12-19 Thread Steve Kargl
On Mon, Dec 19, 2011 at 05:04:43PM -0600, Brooks Davis wrote: > On Mon, Dec 19, 2011 at 12:41:29PM -0800, Steve Kargl wrote: > > On Mon, Dec 19, 2011 at 08:09:32PM +, David Chisnall wrote: > > > On 19 Dec 2011, at 19:52, Warner Losh wrote: > > > > > > > -1. The needs of the many? Please. Le

svn commit: r228725 - in head/sys: dev/gpio mips/atheros

2011-12-19 Thread Adrian Chadd
Author: adrian Date: Tue Dec 20 00:33:56 2011 New Revision: 228725 URL: http://svn.freebsd.org/changeset/base/228725 Log: Remove these locks - they aren't strictly needed and cause measurable performance issues. * Access to the GPIO bus is already locked by requesting and releasing th

svn commit: r228724 - in head/sys: amd64/conf i386/conf

2011-12-19 Thread Xin LI
Author: delphij Date: Tue Dec 20 00:16:52 2011 New Revision: 228724 URL: http://svn.freebsd.org/changeset/base/228724 Log: Add comments in NOTES to say what viawd is. Modified: head/sys/amd64/conf/NOTES head/sys/i386/conf/NOTES Modified: head/sys/amd64/conf/NOTES ==

Re: svn commit: r228711 - head/sys/dev/usb/controller

2011-12-19 Thread Hans Petter Selasky
On Monday 19 December 2011 18:33:29 Andriy Gapon wrote: > on 19/12/2011 17:35 Hans Petter Selasky said the following: > > Author: hselasky > > Date: Mon Dec 19 15:35:05 2011 > > New Revision: 228711 > > URL: http://svn.freebsd.org/changeset/base/228711 > > > > Log: > > Add code to wait for USB s

svn commit: r228723 - head/sys/dev/usb/controller

2011-12-19 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 19 23:39:08 2011 New Revision: 228723 URL: http://svn.freebsd.org/changeset/base/228723 Log: Make the recently added "no_shutdown_wait" sysctl writeable. Suggested by: avg @ MFC after:3 days Modified: head/sys/dev/usb/controller/usb_controller.c Modi

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-12-19 Thread Brooks Davis
On Mon, Dec 19, 2011 at 12:41:29PM -0800, Steve Kargl wrote: > On Mon, Dec 19, 2011 at 08:09:32PM +, David Chisnall wrote: > > On 19 Dec 2011, at 19:52, Warner Losh wrote: > > > > > -1. The needs of the many? Please. Let's break a useful feature > > > because some people don't understand i

Re: svn commit: r189263 - in head/usr.sbin/wpa: . hostapd hostapd_cli wpa_cli wpa_supplicant

2011-12-19 Thread Slawa Olhovchenkov
On Mon, Dec 19, 2011 at 11:45:06PM +0400, Slawa Olhovchenkov wrote: > > Author: sam > > Date: Mon Mar 2 02:28:22 2009 > > New Revision: 189263 > > URL: http://svn.freebsd.org/changeset/base/189263 > > > > Log: > > update to 0.6.8 > > > > Reviewed

svn commit: r228722 - head/usr.sbin/yp_mkdb

2011-12-19 Thread Dimitry Andric
Author: dim Date: Mon Dec 19 20:44:44 2011 New Revision: 228722 URL: http://svn.freebsd.org/changeset/base/228722 Log: In usr.sbin/yp_mkdb/yp_mkdb.c, cast some printf field width parameters to int, cast time_t to intmax_t, and use the corresponding printf length modifier. MFC after:

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-12-19 Thread Steve Kargl
On Mon, Dec 19, 2011 at 08:09:32PM +, David Chisnall wrote: > On 19 Dec 2011, at 19:52, Warner Losh wrote: > > > -1. The needs of the many? Please. Let's break a useful feature because > > some people don't understand it and are impatient? That's lame. > > How useful is gprof-based profi

svn commit: r228721 - head/usr.sbin/uhsoctl

2011-12-19 Thread Dimitry Andric
Author: dim Date: Mon Dec 19 20:38:26 2011 New Revision: 228721 URL: http://svn.freebsd.org/changeset/base/228721 Log: In usr.sbin/uhsoctl/uhsoctl.c, fix a few warnings about format strings not being literals. MFC after:1 week Modified: head/usr.sbin/uhsoctl/uhsoctl.c Modified: he

svn commit: r228720 - head/usr.sbin/timed/timed

2011-12-19 Thread Dimitry Andric
Author: dim Date: Mon Dec 19 20:33:53 2011 New Revision: 228720 URL: http://svn.freebsd.org/changeset/base/228720 Log: Fix r228719; when you use intmax_t, you need stdint.h. Pointy hat to:dim MFC after:1 week Modified: head/usr.sbin/timed/timed/globals.h Modified: head/usr

svn commit: r228719 - head/usr.sbin/timed/timed

2011-12-19 Thread Dimitry Andric
Author: dim Date: Mon Dec 19 20:29:50 2011 New Revision: 228719 URL: http://svn.freebsd.org/changeset/base/228719 Log: Some people pointed out long is 32-bit on some arches, while time_t is 64-bit, so better cast time_t to intmax_t, and use the appropriate printf format strings. MFC aft

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-12-19 Thread David Chisnall
On 19 Dec 2011, at 19:52, Warner Losh wrote: > -1. The needs of the many? Please. Let's break a useful feature because > some people don't understand it and are impatient? That's lame. How useful is gprof-based profiling these days? Now that we have the DTrace pid provider, don't we have a

svn commit: r228718 - head/sys/kern

2011-12-19 Thread Andriy Gapon
Author: avg Date: Mon Dec 19 20:01:21 2011 New Revision: 228718 URL: http://svn.freebsd.org/changeset/base/228718 Log: ule: ensure that batch timeshare threads are scheduled fairly With the previous code, if the range of priorities for timeshare batch threads was greater than RQ_NQS, then

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-12-19 Thread Warner Losh
On Nov 29, 2011, at 1:53 PM, Garrett Cooper wrote: > 2011/11/29 Doug Barton : >> On 11/29/2011 12:47, Gábor Kövesdán wrote: >>> On 2011.11.29. 20:46, Max Khon wrote: Log: Turn off profiled libs build by default. Can be enabled back using WITH_PROFILE=yes in /etc/src.conf >>>

Re: svn commit: r228143 - in head: . share/mk tools/build/options

2011-12-19 Thread Warner Losh
[[ I know it is a bit late here ]] On Nov 29, 2011, at 1:50 PM, Doug Barton wrote: > On 11/29/2011 12:47, Gábor Kövesdán wrote: >> On 2011.11.29. 20:46, Max Khon wrote: >>> Log: >>> Turn off profiled libs build by default. >>> Can be enabled back using WITH_PROFILE=yes in /etc/src.conf >> I

Re: svn commit: r189263 - in head/usr.sbin/wpa: . hostapd hostapd_cli wpa_cli wpa_supplicant

2011-12-19 Thread Slawa Olhovchenkov
On Mon, Dec 19, 2011 at 11:27:43AM -0800, Garrett Cooper wrote: > On Dec 19, 2011, at 11:14 AM, Slawa Olhovchenkov wrote: > > > On Mon, Dec 19, 2011 at 09:57:45AM -0800, Garrett Cooper wrote: > > > >> On Mon, Dec 19, 2011 at 1:41 AM, Slawa Olhovchenkov > >> wrote: > >>> On Mon, Mar 02, 2009 at

Re: svn commit: r189263 - in head/usr.sbin/wpa: . hostapd hostapd_cli wpa_cli wpa_supplicant

2011-12-19 Thread Garrett Cooper
On Dec 19, 2011, at 11:14 AM, Slawa Olhovchenkov wrote: > On Mon, Dec 19, 2011 at 09:57:45AM -0800, Garrett Cooper wrote: > >> On Mon, Dec 19, 2011 at 1:41 AM, Slawa Olhovchenkov wrote: >>> On Mon, Mar 02, 2009 at 02:28:22AM +, Sam Leffler wrote: >>> Author: sam Date: Mon Mar 2 0

Re: svn commit: r221173 - in head/sys: amd64/amd64 arm/arm i386/i386 ia64/ia64 kern mips/mips powerpc/powerpc x86/x86

2011-12-19 Thread Andriy Gapon
on 28/04/2011 19:02 Attilio Rao said the following: > Author: attilio > Date: Thu Apr 28 16:02:05 2011 > New Revision: 221173 > URL: http://svn.freebsd.org/changeset/base/221173 > > Log: > Add the watchdogs patting during the (shutdown time) disk syncing and > disk dumping. > With the option

Re: svn commit: r189263 - in head/usr.sbin/wpa: . hostapd hostapd_cli wpa_cli wpa_supplicant

2011-12-19 Thread Slawa Olhovchenkov
On Mon, Dec 19, 2011 at 09:57:45AM -0800, Garrett Cooper wrote: > On Mon, Dec 19, 2011 at 1:41 AM, Slawa Olhovchenkov wrote: > > On Mon, Mar 02, 2009 at 02:28:22AM +, Sam Leffler wrote: > > > >> Author: sam > >> Date: Mon Mar  2 02:28:22 2009 > >> New Revision: 189263 > >> URL: http://svn.fre

svn commit: r228717 - head/sys/dev/msk

2011-12-19 Thread Pyun YongHyeon
Author: yongari Date: Mon Dec 19 19:02:36 2011 New Revision: 228717 URL: http://svn.freebsd.org/changeset/base/228717 Log: Increase wait time for OP_TCPSTART command processing. It seems 100us is not enough to ensure prefetch unit work. Modified: head/sys/dev/msk/if_msk.c Modified: head/s

svn commit: r228716 - head/sys/dev/fxp

2011-12-19 Thread Pyun YongHyeon
Author: yongari Date: Mon Dec 19 19:00:34 2011 New Revision: 228716 URL: http://svn.freebsd.org/changeset/base/228716 Log: TCP header size is represented by number of 32bits words. Fix the TCP header size calculation such that makes TSO engine cache all header(ethernet/IP/TCP) bytes to its i

svn commit: r228715 - in head: share/man/man9 sys/sys

2011-12-19 Thread John Baldwin
Author: jhb Date: Mon Dec 19 18:55:13 2011 New Revision: 228715 URL: http://svn.freebsd.org/changeset/base/228715 Log: Add a TASK_INITIALIZER() macro that can be used to statically initialize a task structure. Reviewed by: gj MFC after:2 weeks Modified: head/share/man/man9/Makef

svn commit: r228714 - in head/usr.sbin/timed: timed timedc

2011-12-19 Thread Dimitry Andric
Author: dim Date: Mon Dec 19 18:08:31 2011 New Revision: 228714 URL: http://svn.freebsd.org/changeset/base/228714 Log: In usr.sbin/timed, fix several issues with printf formats: - Cast time_t's to long, and print them with %ld. - Print ptrdiff_t's with %td. - Print ssize_t's and size_t's w

Re: svn commit: r189263 - in head/usr.sbin/wpa: . hostapd hostapd_cli wpa_cli wpa_supplicant

2011-12-19 Thread Garrett Cooper
On Mon, Dec 19, 2011 at 1:41 AM, Slawa Olhovchenkov wrote: > On Mon, Mar 02, 2009 at 02:28:22AM +, Sam Leffler wrote: > >> Author: sam >> Date: Mon Mar  2 02:28:22 2009 >> New Revision: 189263 >> URL: http://svn.freebsd.org/changeset/base/189263 >> >> Log: >>   update to 0.6.8 >> >>   Reviewed

Re: svn commit: r228711 - head/sys/dev/usb/controller

2011-12-19 Thread Andriy Gapon
on 19/12/2011 17:35 Hans Petter Selasky said the following: > Author: hselasky > Date: Mon Dec 19 15:35:05 2011 > New Revision: 228711 > URL: http://svn.freebsd.org/changeset/base/228711 > > Log: > Add code to wait for USB shutdown to be executed at system shutdown. > Add sysctl which can be u

svn commit: r228713 - head/contrib/tcpdump

2011-12-19 Thread Dimitry Andric
Author: dim Date: Mon Dec 19 17:32:54 2011 New Revision: 228713 URL: http://svn.freebsd.org/changeset/base/228713 Log: In contrib/tcpdump/print-icmp6.c, fix a problem where the comparison against icmp6_hdr::icmp6_type is done incorrectly. (This fix has already been applied upstream, but we

svn commit: r228712 - in head/sbin: hastctl hastd

2011-12-19 Thread Dimitry Andric
Author: dim Date: Mon Dec 19 15:46:15 2011 New Revision: 228712 URL: http://svn.freebsd.org/changeset/base/228712 Log: Use NO_WCAST_ALIGN for usr.bin/hastctl and usr.bin/hastd; the alignment warnings in sbin/hastd/lzf.c are only emitted for i386 and amd64, and there they can be safely ignore

svn commit: r228711 - head/sys/dev/usb/controller

2011-12-19 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 19 15:35:05 2011 New Revision: 228711 URL: http://svn.freebsd.org/changeset/base/228711 Log: Add code to wait for USB shutdown to be executed at system shutdown. Add sysctl which can be used to skip this waiting. MFC after:3 days Modified: head/sys/de

svn commit: r228710 - head/sys/cddl/compat/opensolaris/kern

2011-12-19 Thread Andriy Gapon
Author: avg Date: Mon Dec 19 14:55:14 2011 New Revision: 228710 URL: http://svn.freebsd.org/changeset/base/228710 Log: opensolaris compat: fix vcmn_err so that panic(9) produces a proper message ... instead of just a verbatim format string. Reviewed by: pjd MFC after:1 week Mod

svn commit: r228709 - head/sys/dev/usb/controller

2011-12-19 Thread Hans Petter Selasky
Author: hselasky Date: Mon Dec 19 14:53:42 2011 New Revision: 228709 URL: http://svn.freebsd.org/changeset/base/228709 Log: Add missing unlock of USB controller's lock, when doing shutdown, suspend and resume. Suggested by: avg @ MFC after:3 days Modified: head/sys/dev/usb/contro

svn commit: r228708 - head/usr.bin/vacation

2011-12-19 Thread Dimitry Andric
Author: dim Date: Mon Dec 19 13:38:28 2011 New Revision: 228708 URL: http://svn.freebsd.org/changeset/base/228708 Log: In usr.bin/vacation/Makefile, fix a typo in the comment about clang warnings. Spotted by: arundel MFC after:1 week Modified: head/usr.bin/vacation/Makefile Mo

svn commit: r228707 - head/usr.sbin/sendmail

2011-12-19 Thread Dimitry Andric
Author: dim Date: Mon Dec 19 13:35:44 2011 New Revision: 228707 URL: http://svn.freebsd.org/changeset/base/228707 Log: Unfortunately, clang gives warnings about sendmail code that cannot be turned off yet. Since this is contrib code, and we don't really care about the warnings, just turn ma

svn commit: r228706 - releng/9.0/etc

2011-12-19 Thread Gleb Smirnoff
Author: glebius Date: Mon Dec 19 13:14:57 2011 New Revision: 228706 URL: http://svn.freebsd.org/changeset/base/228706 Log: Merge r228472. For the sake of POLA for the whole 9.x timeline add compatibility support for specifing IPv4 aliases in rc.conf without the "inet" keyword. Approved

svn commit: r228705 - stable/9/etc

2011-12-19 Thread Gleb Smirnoff
Author: glebius Date: Mon Dec 19 13:12:37 2011 New Revision: 228705 URL: http://svn.freebsd.org/changeset/base/228705 Log: Merge r228472. For the sake of POLA for the whole 9.x timeline add compatibility support for specifing IPv4 aliases in rc.conf without the "inet" keyword. Approved

svn commit: r228704 - releng/9.0/share/man/man5

2011-12-19 Thread Ruslan Ermilov
Author: ru Date: Mon Dec 19 12:51:12 2011 New Revision: 228704 URL: http://svn.freebsd.org/changeset/base/228704 Log: MFC r228457: The "inet" keyword in the "ifconfig_IF_aliasN" is mandatory for IPv4 aliases to work since network.subr@197139. Approved by: re (bz) Modified: releng

svn commit: r228703 - head

2011-12-19 Thread Gleb Smirnoff
Author: glebius Date: Mon Dec 19 12:50:12 2011 New Revision: 228703 URL: http://svn.freebsd.org/changeset/base/228703 Log: Remove if_carp.ko. /boot/kernel should be upgraded atomically. Requested by: netchild, bz Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc

svn commit: r228702 - stable/9/share/man/man5

2011-12-19 Thread Ruslan Ermilov
Author: ru Date: Mon Dec 19 12:11:07 2011 New Revision: 228702 URL: http://svn.freebsd.org/changeset/base/228702 Log: MFC r228457: The "inet" keyword in the "ifconfig_IF_aliasN" is mandatory for IPv4 aliases to work since network.subr@197139. Approved by: re (bz) Modified: stable

Re: svn commit: r189263 - in head/usr.sbin/wpa: . hostapd hostapd_cli wpa_cli wpa_supplicant

2011-12-19 Thread Slawa Olhovchenkov
On Mon, Mar 02, 2009 at 02:28:22AM +, Sam Leffler wrote: > Author: sam > Date: Mon Mar 2 02:28:22 2009 > New Revision: 189263 > URL: http://svn.freebsd.org/changeset/base/189263 > > Log: > update to 0.6.8 > > Reviewed by:thompsa > > Modified: > head/usr.sbin/wpa/Makefile.in

Re: svn commit: r228698 - head/usr.bin/m4

2011-12-19 Thread Baptiste Daroussin
On Mon, Dec 19, 2011 at 08:50:54AM +, Bjoern A. Zeeb wrote: > > On 19. Dec 2011, at 08:46 , Doug Barton wrote: > > > On 12/18/2011 15:54, Dimitry Andric wrote: > >> Author: dim > >> Date: Sun Dec 18 23:54:32 2011 > >> New Revision: 228698 > >> URL: http://svn.freebsd.org/changeset/base/228698

Re: svn commit: r228698 - head/usr.bin/m4

2011-12-19 Thread Bjoern A. Zeeb
On 19. Dec 2011, at 08:46 , Doug Barton wrote: > On 12/18/2011 15:54, Dimitry Andric wrote: >> Author: dim >> Date: Sun Dec 18 23:54:32 2011 >> New Revision: 228698 >> URL: http://svn.freebsd.org/changeset/base/228698 >> >> Log: >> Repair breakage after r228697: since m4 now uses pow(3), it nee

svn commit: r228701 - head/usr.bin/m4

2011-12-19 Thread Bjoern A. Zeeb
Author: bz Date: Mon Dec 19 08:50:17 2011 New Revision: 228701 URL: http://svn.freebsd.org/changeset/base/228701 Log: Unbreak the build after r228697 adding the { } block to make clear which if the else belongs to. Modified: head/usr.bin/m4/eval.c Modified: head/usr.bin/m4/eval.c =

Re: svn commit: r228698 - head/usr.bin/m4

2011-12-19 Thread Doug Barton
On 12/18/2011 15:54, Dimitry Andric wrote: > Author: dim > Date: Sun Dec 18 23:54:32 2011 > New Revision: 228698 > URL: http://svn.freebsd.org/changeset/base/228698 > > Log: > Repair breakage after r228697: since m4 now uses pow(3), it needs -lm. > > Pointy hat to: bapt Still seems br