Re: svn commit: r217589 - head/usr.sbin/syslogd

2011-01-20 Thread Bruce Evans
On Wed, 19 Jan 2011, David Malone wrote: Log: Here v-iov_len has been assigned the return value from snprintf. Checking if it is 0 doesn't make sense, because snprintf returns how much space is needed if the buffer is too small. Instead, check if the return value was greater than the

svn commit: r217625 - head/sys/mips/rmi

2011-01-20 Thread Jayachandran C.
Author: jchandra Date: Thu Jan 20 08:08:19 2011 New Revision: 217625 URL: http://svn.freebsd.org/changeset/base/217625 Log: Fixes in the XLR platform code - Fix bug in pic.h, assign reg variable, before return. - In xlr_pci.c, need to ignore the result of mmio read. Modified:

svn commit: r217626 - in head/sys: conf mips/conf

2011-01-20 Thread Jayachandran C.
Author: jchandra Date: Thu Jan 20 08:15:11 2011 New Revision: 217626 URL: http://svn.freebsd.org/changeset/base/217626 Log: ldscript and conf cleanup for MIPS - Remove sys/conf/ldscript.mips.64 and sys/conf/ldscript.mips.n32 and use ldscript.mips for all ABIs. The default OUTPUT_FORMAT

svn commit: r217628 - head/sys/dev/ath/ath_rate/sample

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Thu Jan 20 08:19:23 2011 New Revision: 217628 URL: http://svn.freebsd.org/changeset/base/217628 Log: Migrate the sample rate module to the new ath_hal_gettxcompletionrates() API. This removes the chipset-dependent TX DMA completion descriptor groveling. It should now

svn commit: r217629 - head/sys/dev/ath/ath_hal/ar5416

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Thu Jan 20 08:40:22 2011 New Revision: 217629 URL: http://svn.freebsd.org/changeset/base/217629 Log: Add a comment from my local HAL about what is actually going on here with these ADC DC Gain/Offset calibrations. The whole idea is to calibrate a pair of ADCs to

svn commit: r217630 - head/sys/mips/conf

2011-01-20 Thread Jayachandran C.
Author: jchandra Date: Thu Jan 20 09:01:14 2011 New Revision: 217630 URL: http://svn.freebsd.org/changeset/base/217630 Log: Re-format XLR configuartion files and remove obsolete options. Modified: head/sys/mips/conf/XLR head/sys/mips/conf/XLR64 head/sys/mips/conf/XLRN32 Modified:

svn commit: r217631 - in head/sys: conf dev/ath/ath_hal/ar5416 dev/ath/ath_hal/ar9001 dev/ath/ath_hal/ar9002 dev/ath/ath_hal/ar9003 modules/ath

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Thu Jan 20 09:03:40 2011 New Revision: 217631 URL: http://svn.freebsd.org/changeset/base/217631 Log: Push the non-AR5416 related stuff into chipset specific directories. sys/dev/ath/ath_hal/ar5416/ is getting very crowded and further commits will make it even more

Re: svn commit: r217612 - head/sys/conf

2011-01-20 Thread Dimitry Andric
On 2011-01-19 23:27, Bjoern A. Zeeb wrote: - * $FreeBSD: projects/mips/sys/conf/ldscript.mips 191079 2009-04-14 22:53:22Z gonzo $ + * $FreeBSD$ This doesn't look right though, does it? It's an svn artifact. If you enable the svn:keywords property, the keywords are collapsed when they are

svn commit: r217632 - in head/sys/dev/ath/ath_hal: . ar9002

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Thu Jan 20 09:37:53 2011 New Revision: 217632 URL: http://svn.freebsd.org/changeset/base/217632 Log: Include the device ids for the AR2427. This is apparently an AR9285 with the 802.11n specific bits disabled. This code is completely untested; I'm doing this in

svn commit: r217633 - head/sys/fs/tmpfs

2011-01-20 Thread Konstantin Belousov
Author: kib Date: Thu Jan 20 09:39:16 2011 New Revision: 217633 URL: http://svn.freebsd.org/changeset/base/217633 Log: In tmpfs_readdir(), normalize handling of the directory entries that either overflow the supplied buffer, or cause uiomove fail. Do not advance cached de when directory

svn commit: r217634 - head/sys/dev/ath/ath_hal/ar5416

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Thu Jan 20 09:46:18 2011 New Revision: 217634 URL: http://svn.freebsd.org/changeset/base/217634 Log: Only enable 11n modes if the chipset suports 11n. Since the AR2427 doesn't allow 802.11n, it shouldn't have them configured. Modified:

Re: svn commit: r217589 - head/usr.sbin/syslogd

2011-01-20 Thread David Malone
snprintf(buf, 2, %*s%*s%*s, INT_MAX, 223, INT_MAX, , 3, bar); Ah - good example. Would it be worth adding some clarification to our man page? The paragraphs discussing return values suggest that *printf() functions can only fail because of output or malloc errors. I guess two other cases

svn commit: r217635 - head/sys/netinet

2011-01-20 Thread Randall Stewart
Author: rrs Date: Thu Jan 20 12:40:09 2011 New Revision: 217635 URL: http://svn.freebsd.org/changeset/base/217635 Log: Fix it so we align with new socket API draft for state's in destination (i.e. ACTIVE/INACTIVE/UNCONFIRMED) MFC after:1 week Modified:

svn commit: r217636 - in head/sys/mips: conf rmi

2011-01-20 Thread Jayachandran C.
Author: jchandra Date: Thu Jan 20 12:45:29 2011 New Revision: 217636 URL: http://svn.freebsd.org/changeset/base/217636 Log: Move 'cpu CPU_RMI' to std.xlr, this is common for all XLR cpus. Modified: head/sys/mips/conf/XLR head/sys/mips/conf/XLR64 head/sys/mips/conf/XLRN32

svn commit: r217637 - in head/sys/dev/usb: . serial

2011-01-20 Thread Nick Hibma
Author: n_hibma Date: Thu Jan 20 13:02:54 2011 New Revision: 217637 URL: http://svn.freebsd.org/changeset/base/217637 Log: Add another ID for the ZTE MF190 Surf Stick Submitted by: nagilum MFC after:1 day Modified: head/sys/dev/usb/serial/u3g.c head/sys/dev/usb/usbdevs

Re: svn commit: r217589 - head/usr.sbin/syslogd

2011-01-20 Thread Bruce Evans
On Thu, 20 Jan 2011, David Malone wrote: snprintf(buf, 2, %*s%*s%*s, INT_MAX, 223, INT_MAX, , 3, bar); Ah - good example. Would it be worth adding some clarification to our man page? The paragraphs discussing return values suggest that *printf() functions can only fail because of

svn commit: r217638 - head/sys/netinet

2011-01-20 Thread Michael Tuexen
Author: tuexen Date: Thu Jan 20 13:53:34 2011 New Revision: 217638 URL: http://svn.freebsd.org/changeset/base/217638 Log: Improve comments. MFC after: 1 week. Modified: head/sys/netinet/sctp_usrreq.c Modified: head/sys/netinet/sctp_usrreq.c

svn commit: r217639 - head/sys/powerpc/powermac

2011-01-20 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jan 20 15:02:51 2011 New Revision: 217639 URL: http://svn.freebsd.org/changeset/base/217639 Log: Correct parsing of the cpcht ranges property. Submitted by: andreast MFC after:2 weeks Modified: head/sys/powerpc/powermac/cpcht.c Modified:

svn commit: r217641 - head/sys/dev/ath/ath_hal/ar9002

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Thu Jan 20 15:09:11 2011 New Revision: 217641 URL: http://svn.freebsd.org/changeset/base/217641 Log: ar9280SetAntennaSwitch() was using the AR5416 chainmasks (3 chains) rather than the AR9280 chainmasks (2 chains) Modified:

svn commit: r217642 - head/usr.bin/netstat

2011-01-20 Thread Hajimu UMEMOTO
Author: ume Date: Thu Jan 20 15:22:01 2011 New Revision: 217642 URL: http://svn.freebsd.org/changeset/base/217642 Log: - Hide the internal scope address representation of the KAME IPv6 stack from the output of `netstat -ani'. - The node-local multicast address in the output of `netstat

svn commit: r217644 - head/sys/boot/forth

2011-01-20 Thread John Baldwin
Author: jhb Date: Thu Jan 20 16:03:28 2011 New Revision: 217644 URL: http://svn.freebsd.org/changeset/base/217644 Log: Fix a stack leak in r215345 when skipping over the ACPI menu item for machines that do not support ACPI. Submitted by: olli Modified: head/sys/boot/forth/beastie.4th

svn commit: r217646 - head/share/misc

2011-01-20 Thread Ryusuke SUZUKI
Author: ryusuke (doc committer) Date: Thu Jan 20 17:28:57 2011 New Revision: 217646 URL: http://svn.freebsd.org/changeset/base/217646 Log: Add myself to the list of doc commiters. Modified: head/share/misc/committers-doc.dot Modified: head/share/misc/committers-doc.dot

svn commit: r217649 - head/sys/dev/alc

2011-01-20 Thread Pyun YongHyeon
Author: yongari Date: Thu Jan 20 18:26:33 2011 New Revision: 217649 URL: http://svn.freebsd.org/changeset/base/217649 Log: Correct wrong definition of PM timer mask and adjust L1/PM timer value. While I'm here enable all clocks before initializing controller. This change should fix lockup

svn commit: r217652 - head/sys/conf

2011-01-20 Thread Warner Losh
Author: imp Date: Thu Jan 20 19:16:29 2011 New Revision: 217652 URL: http://svn.freebsd.org/changeset/base/217652 Log: We don't need 2 versions here. One will do since binutils outputs the right stuff now. Deleted: head/sys/conf/ldscript.mips.64.cfe Modified:

svn commit: r217655 - head/sys/conf

2011-01-20 Thread Warner Losh
Author: imp Date: Thu Jan 20 19:20:23 2011 New Revision: 217655 URL: http://svn.freebsd.org/changeset/base/217655 Log: Remove commented out _DYNAMIC sections. Modified: head/sys/conf/ldscript.mips.cfe head/sys/conf/ldscript.mips.mips64 Modified: head/sys/conf/ldscript.mips.cfe

svn commit: r217659 - head/sys/powerpc/powermac

2011-01-20 Thread Andreas Tobler
Author: andreast Date: Thu Jan 20 20:23:03 2011 New Revision: 217659 URL: http://svn.freebsd.org/changeset/base/217659 Log: Remove unused variables. Spotted by a cppcheck (devel/cppcheck, http://sourceforge.net/projects/cppcheck) run. Approved by: nwhitehorn (mentor) Modified:

svn commit: r217663 - in head/sys/boot/arm/at91: . boot0

2011-01-20 Thread Warner Losh
Author: imp Date: Thu Jan 20 22:58:10 2011 New Revision: 217663 URL: http://svn.freebsd.org/changeset/base/217663 Log: No need to list an obsolete arm compiler here. Modified: head/sys/boot/arm/at91/boot0/linker.cfg head/sys/boot/arm/at91/linker.cfg Modified:

svn commit: r217664 - head/sys/mips/cavium/octe

2011-01-20 Thread Juli Mallett
Author: jmallett Date: Thu Jan 20 23:34:59 2011 New Revision: 217664 URL: http://svn.freebsd.org/changeset/base/217664 Log: Remove some compile-time options from the driver, particularly async IOBDMA support which is unused on FreeBSD and which complicates working on the code now, can

svn commit: r217665 - head/sys/mips/cavium/octe

2011-01-20 Thread Juli Mallett
Author: jmallett Date: Thu Jan 20 23:51:03 2011 New Revision: 217665 URL: http://svn.freebsd.org/changeset/base/217665 Log: If there is no WQE available for a packet that needs segmentation, drop it and return. Modified: head/sys/mips/cavium/octe/ethernet-tx.c Modified:

svn commit: r217680 - in head/tools/tools/ath: . athdebug athdecode athprom athrd athregs athstats

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Fri Jan 21 02:53:32 2011 New Revision: 217680 URL: http://svn.freebsd.org/changeset/base/217680 Log: Make the existing ath tools build again. * add missing includes to quieten warnings * fix an inline function decl to have a return type * since .h files are created

svn commit: r217681 - head/tools/tools/ath

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Fri Jan 21 02:56:59 2011 New Revision: 217681 URL: http://svn.freebsd.org/changeset/base/217681 Log: Remove an un-needed trailing / after OBJDIR. Nitpicked by: juli Modified: head/tools/tools/ath/Makefile.inc Modified: head/tools/tools/ath/Makefile.inc

svn commit: r217682 - in head/tools/tools/ath: . ath_ee_v14_print

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Fri Jan 21 03:14:08 2011 New Revision: 217682 URL: http://svn.freebsd.org/changeset/base/217682 Log: Add in a new tool which prints a formatted v14 eeprom from an eeprom hexdump. This is a part replacement of the old athprom code, which tries to both fetch and

svn commit: r217684 - in head/sys/dev/ath: . ath_hal ath_hal/ar5210 ath_hal/ar5211 ath_hal/ar5212 ath_hal/ar5416 ath_hal/ar9002

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Fri Jan 21 05:21:00 2011 New Revision: 217684 URL: http://svn.freebsd.org/changeset/base/217684 Log: ANI changes #1 - split out the ANI polling from the RxMonitor hook. The rxmonitor hook is called on each received packet. This can get very, very busy as the

svn commit: r217685 - head/sys/dev/ath/ath_hal

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Fri Jan 21 06:42:25 2011 New Revision: 217685 URL: http://svn.freebsd.org/changeset/base/217685 Log: Modify the v14/v4k eeprom diag interface to return the whole eeprom. The v1 and v3 interfaces returned the whole EEPROM but the v14/v4k interfaces just returned the

svn commit: r217686 - head/sys/dev/ath/ath_hal/ar5416

2011-01-20 Thread Adrian Chadd
Author: adrian Date: Fri Jan 21 07:26:53 2011 New Revision: 217686 URL: http://svn.freebsd.org/changeset/base/217686 Log: Add missing getCapability call for AR5416. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c