svn commit: r213828 - stable/7/usr.bin/script

2010-10-13 Thread David E. O'Brien
Author: obrien Date: Thu Oct 14 03:13:20 2010 New Revision: 213828 URL: http://svn.freebsd.org/changeset/base/213828 Log: MFC r212770 & r212832: + Add the SCRIPT environmental variable to the sub-shell. + Add the 'command' argument (if supplied on the command line) to the typescrip

svn commit: r213827 - stable/8/usr.bin/script

2010-10-13 Thread David E. O'Brien
Author: obrien Date: Thu Oct 14 03:11:41 2010 New Revision: 213827 URL: http://svn.freebsd.org/changeset/base/213827 Log: MFC r212832: update manpage Modified: stable/8/usr.bin/script/script.1 Directory Properties: stable/8/usr.bin/script/ (props changed) Modified: stable/8/usr.bin/scrip

svn commit: r213826 - stable/7/usr.bin/ruptime

2010-10-13 Thread David E. O'Brien
Author: obrien Date: Thu Oct 14 02:19:53 2010 New Revision: 213826 URL: http://svn.freebsd.org/changeset/base/213826 Log: MFC r212771: Increase the hostname display width to >12 characters. Modified: stable/7/usr.bin/ruptime/ruptime.c Directory Properties: stable/7/usr.bin/ruptime/ (p

svn commit: r213825 - stable/8/usr.bin/ruptime

2010-10-13 Thread David E. O'Brien
Author: obrien Date: Thu Oct 14 02:10:49 2010 New Revision: 213825 URL: http://svn.freebsd.org/changeset/base/213825 Log: MFC r212771: Increase the hostname display width to >12 characters. Modified: stable/8/usr.bin/ruptime/ruptime.c Directory Properties: stable/8/usr.bin/ruptime/ (p

Re: svn commit: r213744 - head/bin/sh

2010-10-13 Thread Bruce Evans
On Wed, 13 Oct 2010, John Baldwin wrote: On Wednesday, October 13, 2010 12:29:27 am Bruce Evans wrote: On Tue, 12 Oct 2010, David O'Brien wrote: On Wed, Oct 13, 2010 at 02:18:33PM +1100, Bruce Evans wrote: ... Of course, debugging and profiling are magic, but I don't want to have to adorn al

svn commit: r213817 - in stable/8: . contrib/top etc/periodic/daily gnu/usr.bin lib/libusb release/picobsd/floppy.tree/sbin sbin/geom/class/sched tools/regression/lib/msun tools/regression/usr.bin/...

2010-10-13 Thread David E. O'Brien
Author: obrien Date: Thu Oct 14 01:21:44 2010 New Revision: 213817 URL: http://svn.freebsd.org/changeset/base/213817 Log: MFC r212770 & r212832: + Add the SCRIPT environmental variable to the sub-shell. + Add the 'command' argument (if supplied on the command line) to the typescrip

Re: svn commit: r213793 - in head/sys/dev: ce cp

2010-10-13 Thread Bruce Evans
On Wed, 13 Oct 2010, Jung-uk Kim wrote: On Wednesday 13 October 2010 01:27 pm, Roman Divacky wrote: Modified: head/sys/dev/ce/if_ce.c = = --- head/sys/dev/ce/if_ce.c Wed Oct 13 17:16:08 2010(r213792) +++ head

svn commit: r213816 - stable/8/sys/dev/aac

2010-10-13 Thread Ed Maste
Author: emaste Date: Thu Oct 14 00:46:33 2010 New Revision: 213816 URL: http://svn.freebsd.org/changeset/base/213816 Log: MFC r212594: Avoid repeatedly spamming the console while a timed out command is waiting to complete. Instead, print one message after the timeout period expires,

svn commit: r213815 - head/bin/sh

2010-10-13 Thread David E. O'Brien
Author: obrien Date: Wed Oct 13 23:31:17 2010 New Revision: 213815 URL: http://svn.freebsd.org/changeset/base/213815 Log: We only need to look as far as '..' to find 'test/'. Modified: head/bin/sh/Makefile Modified: head/bin/sh/Makefile ===

svn commit: r213814 - in head: bin/sh tools/regression/bin/sh/expansion

2010-10-13 Thread David E. O'Brien
Author: obrien Date: Wed Oct 13 23:29:09 2010 New Revision: 213814 URL: http://svn.freebsd.org/changeset/base/213814 Log: Do not assume in growstackstr() that a "precious" character will be immediately written into the stack after the call. Instead let the caller manage the "space left".

svn commit: r213813 - in head: share/man/man9 sys/kern sys/sys

2010-10-13 Thread Matthew D Fleming
Author: mdf Date: Wed Oct 13 22:59:04 2010 New Revision: 213813 URL: http://svn.freebsd.org/changeset/base/213813 Log: Use a safer mechanism for determining if a task is currently running, that does not rely on the lifetime of pointers being the same. This also restores the task KBI. Su

svn commit: r213812 - head/sys/dev/bge

2010-10-13 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 13 22:29:48 2010 New Revision: 213812 URL: http://svn.freebsd.org/changeset/base/213812 Log: Fix a regression introduced in r213710. r213710 removed the use of auto polling such that it made all controllers obtain link status information from the state of the LN

Re: svn commit: r213744 - head/bin/sh

2010-10-13 Thread David O'Brien
On Wed, Oct 13, 2010 at 09:07:59AM -0400, John Baldwin wrote: > To be honest, I think changing STATIC is excessive churn. At this point I'm just making everything consistently "static" so that folks that add to ash won't need to realize that "STATIC" exists. Some of the folks making various FreeB

Re: svn commit: r213744 - head/bin/sh

2010-10-13 Thread David O'Brien
On Wed, Oct 13, 2010 at 03:29:27PM +1100, Bruce Evans wrote: > Add __noinline or whatever attributes to STATIC (but keep static in > it) for the DEBUG >= 3 case if you are going that far. __noinline > should be a syntax error for variables, so this should also find any > STATICs still on variables

svn commit: r213811 - head/bin/sh

2010-10-13 Thread David E. O'Brien
Author: obrien Date: Wed Oct 13 22:18:03 2010 New Revision: 213811 URL: http://svn.freebsd.org/changeset/base/213811 Log: In the spirit of r90111, depend on c89 and remove the "STATIC" macro and its usage. Modified: head/bin/sh/Makefile head/bin/sh/alias.c head/bin/sh/cd.c head/bin/sh

svn commit: r213810 - head/sbin/ipfw

2010-10-13 Thread Luigi Rizzo
Author: luigi Date: Wed Oct 13 22:07:57 2010 New Revision: 213810 URL: http://svn.freebsd.org/changeset/base/213810 Log: document logging through bpf Modified: head/sbin/ipfw/ipfw.8 Modified: head/sbin/ipfw/ipfw.8 ==

svn commit: r213809 - in head/sys/dev/usb: . net

2010-10-13 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 13 22:04:55 2010 New Revision: 213809 URL: http://svn.freebsd.org/changeset/base/213809 Log: USB network (NCM driver): - correct the ethernet payload remainder which must be post-offseted by -14 bytes instead of 0 bytes. This is not very clearly defined in th

svn commit: r213808 - head/sys/dev/bge

2010-10-13 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 13 21:53:37 2010 New Revision: 213808 URL: http://svn.freebsd.org/changeset/base/213808 Log: Add more checks for resolved link speed in bge_miibus_statchg(). Link UP state could be reported first before actual completion of auto-negotiation. This change makes bg

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

2010-10-13 Thread Juli Mallett
Author: jmallett Date: Wed Oct 13 21:45:56 2010 New Revision: 213807 URL: http://svn.freebsd.org/changeset/base/213807 Log: Keep polling at 50hz as long as link state is changing. Modified: head/sys/mips/cavium/octe/ethernet.c Modified: head/sys/mips/cavium/octe/ethernet.c ==

Re: svn commit: r213779 - head/sys/dev/sound/pci

2010-10-13 Thread Jung-uk Kim
On Wednesday 13 October 2010 05:17 pm, Rui Paulo wrote: > On 13 Oct 2010, at 22:03, Jung-uk Kim wrote: > > On Wednesday 13 October 2010 04:30 pm, you wrote: > >> I read the PR and the mailing list posts, but I don't see what > >> problem does "case SPICDS_TYPE_AK4381 || SPICDS_TYPE_AK4396:" > >> fi

svn commit: r213806 - in head/sys/contrib/dev/acpica: . common compiler events include include/platform utilities

2010-10-13 Thread Jung-uk Kim
Author: jkim Date: Wed Oct 13 21:37:02 2010 New Revision: 213806 URL: http://svn.freebsd.org/changeset/base/213806 Log: Merge ACPICA 20101013. Added: head/sys/contrib/dev/acpica/compiler/aslmessages.h - copied unchanged from r213804, vendor-sys/acpica/dist/compiler/aslmessages.h

svn commit: r213805 - in head/sys: conf dev/usb/net modules/usb modules/usb/ipheth

2010-10-13 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 13 21:36:42 2010 New Revision: 213805 URL: http://svn.freebsd.org/changeset/base/213805 Log: USB Network: - Add new driver for iPhone tethering - Supports the iPhone 3G/3GS/4G ethernet protocol Approved by:thompsa (mentor) Added: head/sys/dev/usb/ne

Re: svn commit: r213779 - head/sys/dev/sound/pci

2010-10-13 Thread Rui Paulo
On 13 Oct 2010, at 22:03, Jung-uk Kim wrote: > On Wednesday 13 October 2010 04:30 pm, you wrote: >> I read the PR and the mailing list posts, but I don't see what >> problem does "case SPICDS_TYPE_AK4381 || SPICDS_TYPE_AK4396:" fix. > > A similar bug for right channel was fixed by netchild@ in r

Re: svn commit: r213779 - head/sys/dev/sound/pci

2010-10-13 Thread Jung-uk Kim
On Wednesday 13 October 2010 04:30 pm, you wrote: > I read the PR and the mailing list posts, but I don't see what > problem does "case SPICDS_TYPE_AK4381 || SPICDS_TYPE_AK4396:" fix. A similar bug for right channel was fixed by netchild@ in r188480: http://svn.freebsd.org/viewvc/base/head/sys/de

svn commit: r213804 - head/sys/dev/usb/wlan

2010-10-13 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 13 20:56:54 2010 New Revision: 213804 URL: http://svn.freebsd.org/changeset/base/213804 Log: USB WLAN: - Add new device ID PR: usb/150989 Approved by:thompsa (mentor) Modified: head/sys/dev/usb/wlan/if_upgt.c Modified: head/sys/dev/usb/wlan/if_up

svn commit: r213803 - head/sys/dev/usb/net

2010-10-13 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 13 20:51:06 2010 New Revision: 213803 URL: http://svn.freebsd.org/changeset/base/213803 Log: USB network (UHSO): - Correct network interface flags. PR: usb/149039 Submitted by: Fredrik Lindberg Approved by:thompsa (mentor) Modified: head/sys/dev

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

2010-10-13 Thread Hans Petter Selasky
Author: hselasky Date: Wed Oct 13 20:37:19 2010 New Revision: 213802 URL: http://svn.freebsd.org/changeset/base/213802 Log: Correct some root HUB descriptor fields in multiple controller drivers. Remove an unused structure. Approved by:thompsa (mentor) Modified: head/sys/dev/usb/co

svn commit: r213801 - vendor-sys/acpica/20101013

2010-10-13 Thread Jung-uk Kim
Author: jkim Date: Wed Oct 13 20:36:42 2010 New Revision: 213801 URL: http://svn.freebsd.org/changeset/base/213801 Log: Tag ACPICA 20101013. Added: vendor-sys/acpica/20101013/ - copied from r213800, vendor-sys/acpica/dist/ ___ svn-src-all

svn commit: r213800 - in vendor-sys/acpica/dist: . common compiler events include include/platform os_specific/service_layers tests/misc tools/acpiexec tools/acpisrc utilities

2010-10-13 Thread Jung-uk Kim
Author: jkim Date: Wed Oct 13 20:35:34 2010 New Revision: 213800 URL: http://svn.freebsd.org/changeset/base/213800 Log: Import ACPICA 20101013. Added: vendor-sys/acpica/dist/compiler/aslmessages.h (contents, props changed) vendor-sys/acpica/dist/tools/acpiexec/aetables.h (contents

Re: svn commit: r213779 - head/sys/dev/sound/pci

2010-10-13 Thread Rui Paulo
On 13 Oct 2010, at 20:46, Jung-uk Kim wrote: > On Wednesday 13 October 2010 10:39 am, Rui Paulo wrote: >> Author: rpaulo >> Date: Wed Oct 13 14:39:54 2010 >> New Revision: 213779 >> URL: http://svn.freebsd.org/changeset/base/213779 >> >> Log: >> Fix a brain-o: wrong case statement semantics. >>

svn commit: r213799 - head/usr.bin/truss

2010-10-13 Thread Benedict Reuschling
Author: bcr (doc committer) Date: Wed Oct 13 20:08:02 2010 New Revision: 213799 URL: http://svn.freebsd.org/changeset/base/213799 Log: s/sytem/system in comments, no functional changes. Reviewed by:alfred@ Modified: head/usr.bin/truss/amd64-fbsd.c head/usr.bin/truss/amd64-fbsd32.c

Re: svn commit: r213793 - in head/sys/dev: ce cp

2010-10-13 Thread John Baldwin
On Wednesday, October 13, 2010 1:59:42 pm Jung-uk Kim wrote: > On Wednesday 13 October 2010 01:27 pm, Roman Divacky wrote: > > On Wed, Oct 13, 2010 at 05:17:50PM +, Rui Paulo wrote: > > > Author: rpaulo > > > Date: Wed Oct 13 17:17:50 2010 > > > New Revision: 213793 > > > URL: http://svn.freebs

Re: svn commit: r213648 - head/sys/kern

2010-10-13 Thread John Baldwin
On Wednesday, October 13, 2010 12:21:44 pm Gennady Proskurin wrote: > Thank you and Bruce for explanation. > The key point here (which I did not understand) is that > "something == PCPU_GET(cpuid))" may be true only if "something" is set by the > current cpu, in which case its value is not stale.

Re: svn commit: r213779 - head/sys/dev/sound/pci

2010-10-13 Thread Jung-uk Kim
On Wednesday 13 October 2010 10:39 am, Rui Paulo wrote: > Author: rpaulo > Date: Wed Oct 13 14:39:54 2010 > New Revision: 213779 > URL: http://svn.freebsd.org/changeset/base/213779 > > Log: > Fix a brain-o: wrong case statement semantics. > > Found with: clang > > Modified: > head/sys/dev/sou

svn commit: r213798 - head/bin/sh

2010-10-13 Thread David E. O'Brien
Author: obrien Date: Wed Oct 13 18:23:43 2010 New Revision: 213798 URL: http://svn.freebsd.org/changeset/base/213798 Log: If one wishes to set breakpoints of static the functions here, they cannot be inlined. Submitted by: jhb Modified: head/bin/sh/Makefile Modified: head/bin/sh/Makef

Re: svn commit: r213793 - in head/sys/dev: ce cp

2010-10-13 Thread Jung-uk Kim
On Wednesday 13 October 2010 01:27 pm, Roman Divacky wrote: > On Wed, Oct 13, 2010 at 05:17:50PM +, Rui Paulo wrote: > > Author: rpaulo > > Date: Wed Oct 13 17:17:50 2010 > > New Revision: 213793 > > URL: http://svn.freebsd.org/changeset/base/213793 > > > > Log: > > Don't do a logical AND of

svn commit: r213797 - head/sys/crypto/aesni

2010-10-13 Thread Dimitry Andric
Author: dim Date: Wed Oct 13 17:55:53 2010 New Revision: 213797 URL: http://svn.freebsd.org/changeset/base/213797 Log: Change two missed instances of 'retq' in aeskeys_i386.S to 'retl', which makes it possible to assemble this file with gas from newer binutils. Reviewed by: kib Modified

svn commit: r213796 - head/sys/pci

2010-10-13 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 13 17:55:19 2010 New Revision: 213796 URL: http://svn.freebsd.org/changeset/base/213796 Log: Rewrite interrupt handler to give fairness for both RX and TX. Previously rl(4) continuously checked whether there are RX events or TX completions in forever loop. This

svn commit: r213795 - in head/sys/dev: ce cp

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 17:38:23 2010 New Revision: 213795 URL: http://svn.freebsd.org/changeset/base/213795 Log: Revert r213793. Modified: head/sys/dev/ce/if_ce.c head/sys/dev/cp/if_cp.c Modified: head/sys/dev/ce/if_ce.c

Re: svn commit: r213793 - in head/sys/dev: ce cp

2010-10-13 Thread Roman Divacky
On Wed, Oct 13, 2010 at 05:17:50PM +, Rui Paulo wrote: > Author: rpaulo > Date: Wed Oct 13 17:17:50 2010 > New Revision: 213793 > URL: http://svn.freebsd.org/changeset/base/213793 > > Log: > Don't do a logical AND of the result of strcmp() with a constant. > > Found with: clang > > Mod

svn commit: r213794 - head/sys/netgraph

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 17:21:21 2010 New Revision: 213794 URL: http://svn.freebsd.org/changeset/base/213794 Log: When calling panic(), always pass a format string. Modified: head/sys/netgraph/ng_UI.c head/sys/netgraph/ng_async.c head/sys/netgraph/ng_frame_relay.c head/sys/netgr

svn commit: r213793 - in head/sys/dev: ce cp

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 17:17:50 2010 New Revision: 213793 URL: http://svn.freebsd.org/changeset/base/213793 Log: Don't do a logical AND of the result of strcmp() with a constant. Found with: clang Modified: head/sys/dev/ce/if_ce.c head/sys/dev/cp/if_cp.c Modified: head/sys/

svn commit: r213792 - head/sys/contrib/pf/netinet

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 17:16:08 2010 New Revision: 213792 URL: http://svn.freebsd.org/changeset/base/213792 Log: Ignore the return value of ADDCARRY(). Modified: head/sys/contrib/pf/netinet/in4_cksum.c Modified: head/sys/contrib/pf/netinet/in4_cksum.c ===

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

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 17:13:43 2010 New Revision: 213791 URL: http://svn.freebsd.org/changeset/base/213791 Log: Pass a format string to panic() and to taskqueue_start_threads(). Found with: clang Modified: head/sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c head/sys

svn commit: r213790 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 17:12:23 2010 New Revision: 213790 URL: http://svn.freebsd.org/changeset/base/213790 Log: In zfs_post_common(), use %d instead of %hhu. Found with: clang Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_fm.c Modified: head/sys/cddl/cont

svn commit: r213789 - in head/sys/contrib/ngatm/netnatm: msg sig

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 17:09:53 2010 New Revision: 213789 URL: http://svn.freebsd.org/changeset/base/213789 Log: Properly tell the compiler that we want to ignore the return value of certain macros. Modified: head/sys/contrib/ngatm/netnatm/msg/privmsg.c head/sys/contrib/ngatm/net

svn commit: r213788 - head/sys/contrib/ngatm/netnatm/api

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 17:09:16 2010 New Revision: 213788 URL: http://svn.freebsd.org/changeset/base/213788 Log: Fix several cases were a conditional operator was used instead of a bitwise operator. Found with: clang Modified: head/sys/contrib/ngatm/netnatm/api/cc_conn.c Mo

svn commit: r213787 - head/sys/dev/acpica/Osd

2010-10-13 Thread Jung-uk Kim
Author: jkim Date: Wed Oct 13 17:06:25 2010 New Revision: 213787 URL: http://svn.freebsd.org/changeset/base/213787 Log: Clean up unused headers. Modified: head/sys/dev/acpica/Osd/OsdHardware.c Modified: head/sys/dev/acpica/Osd/OsdHardware.c ===

svn commit: r213786 - head/contrib/llvm/tools/clang/lib/Sema

2010-10-13 Thread Roman Divacky
Author: rdivacky Date: Wed Oct 13 17:01:33 2010 New Revision: 213786 URL: http://svn.freebsd.org/changeset/base/213786 Log: Actually, check for any kind of "C string type". Approved by:rpaulo (mentor) Modified: head/contrib/llvm/tools/clang/lib/Sema/SemaChecking.cpp Modified: head/c

svn commit: r213785 - in head/lib/libc: net sys

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 16:57:06 2010 New Revision: 213785 URL: http://svn.freebsd.org/changeset/base/213785 Log: Clang related fixes: * When calling syslog(), pass a format string. * Define YY_NO_INPUT on nslexer.l Submitted by: Norberto Lopes Modified: head/lib/libc/net/ns

svn commit: r213784 - head/lib/libz

2010-10-13 Thread Warner Losh
Author: imp Date: Wed Oct 13 16:34:08 2010 New Revision: 213784 URL: http://svn.freebsd.org/changeset/base/213784 Log: Revert 212517 to restore pristine state of this file Modified: head/lib/libz/minigzip.c Modified: head/lib/libz/minigzip.c ==

svn commit: r213783 - head/sys/dev/acpica/Osd

2010-10-13 Thread Jung-uk Kim
Author: jkim Date: Wed Oct 13 16:30:41 2010 New Revision: 213783 URL: http://svn.freebsd.org/changeset/base/213783 Log: Remove acpi_bus_number() completely. It had to be removed in r212761. Pointed out by: jhb Modified: head/sys/dev/acpica/Osd/OsdHardware.c Modified: head/sys/dev

Re: svn commit: r213772 - head/sys/dev/acpica/Osd

2010-10-13 Thread Jung-uk Kim
On Wednesday 13 October 2010 08:47 am, John Baldwin wrote: > On Wednesday, October 13, 2010 7:38:25 am Rui Paulo wrote: > > Author: rpaulo > > Date: Wed Oct 13 11:38:24 2010 > > New Revision: 213772 > > URL: http://svn.freebsd.org/changeset/base/213772 > > > > Log: > > Mark acpi_bus_number() as _

Re: svn commit: r213648 - head/sys/kern

2010-10-13 Thread Gennady Proskurin
Thank you and Bruce for explanation. The key point here (which I did not understand) is that "something == PCPU_GET(cpuid))" may be true only if "something" is set by the current cpu, in which case its value is not stale. On Wed, Oct 13, 2010 at 09:05:04AM -0400, John Baldwin wrote: > On Tuesday,

svn commit: r213782 - head/sys/contrib/ipfilter/netinet

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 14:57:13 2010 New Revision: 213782 URL: http://svn.freebsd.org/changeset/base/213782 Log: Pass a format string to make_dev(). Found by: clang Modified: head/sys/contrib/ipfilter/netinet/mlfk_ipl.c Modified: head/sys/contrib/ipfilter/netinet/mlfk_ipl.c

svn commit: r213781 - in head/sys/modules: cryptodev sysvipc/sysvmsg sysvipc/sysvsem

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 14:44:38 2010 New Revision: 213781 URL: http://svn.freebsd.org/changeset/base/213781 Log: Add opt_compat.h to SRCS. Modified: head/sys/modules/cryptodev/Makefile head/sys/modules/sysvipc/sysvmsg/Makefile head/sys/modules/sysvipc/sysvsem/Makefile Modified:

svn commit: r213780 - head/sys/dev/hptrr

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 14:41:52 2010 New Revision: 213780 URL: http://svn.freebsd.org/changeset/base/213780 Log: Pass a format string to make_dev(). Modified: head/sys/dev/hptrr/hptrr_osm_bsd.c Modified: head/sys/dev/hptrr/hptrr_osm_bsd.c

svn commit: r213779 - head/sys/dev/sound/pci

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 14:39:54 2010 New Revision: 213779 URL: http://svn.freebsd.org/changeset/base/213779 Log: Fix a brain-o: wrong case statement semantics. Found with: clang Modified: head/sys/dev/sound/pci/envy24ht.c head/sys/dev/sound/pci/spicds.c Modified: head/sys/d

svn commit: r213778 - head/sys/dev/if_ndis

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 14:37:52 2010 New Revision: 213778 URL: http://svn.freebsd.org/changeset/base/213778 Log: WPA_CSE_WEP104 was being incorrectly checked. Found with: clang Modified: head/sys/dev/if_ndis/if_ndis.c Modified: head/sys/dev/if_ndis/if_ndis.c =

svn commit: r213777 - head/contrib/llvm/tools/clang/lib/Sema

2010-10-13 Thread Roman Divacky
Author: rdivacky Date: Wed Oct 13 14:27:47 2010 New Revision: 213777 URL: http://svn.freebsd.org/changeset/base/213777 Log: Extend this check for const unsigned char *. Approved by:rpaulo (mentor) Modified: head/contrib/llvm/tools/clang/lib/Sema/SemaChecking.cpp Modified: head/contr

svn commit: r213776 - stable/8/sys/cam/scsi

2010-10-13 Thread Jaakko Heinonen
Author: jh Date: Wed Oct 13 14:02:45 2010 New Revision: 213776 URL: http://svn.freebsd.org/changeset/base/213776 Log: MFC r200036 by scottl: Fix several cases where the periph lock was held over malloc. PR: kern/130735 Modified: stable/8/sys/cam/scsi/scsi_cd.c Directory Pr

Re: svn commit: r213744 - head/bin/sh

2010-10-13 Thread John Baldwin
On Wednesday, October 13, 2010 12:29:27 am Bruce Evans wrote: > On Tue, 12 Oct 2010, David O'Brien wrote: > > > On Wed, Oct 13, 2010 at 02:18:33PM +1100, Bruce Evans wrote: > >> On Tue, 12 Oct 2010, David E. O'Brien wrote: > >>> Log: > >>> If DEBUG is 3 or greater, disable STATICization of functi

Re: svn commit: r213648 - head/sys/kern

2010-10-13 Thread John Baldwin
On Tuesday, October 12, 2010 5:08:04 pm Gennady Proskurin wrote: > On Sat, Oct 09, 2010 at 12:48:50PM +0300, Andriy Gapon wrote: > > on 09/10/2010 12:33 Bruce Evans said the following: > > > On Sat, 9 Oct 2010, Andriy Gapon wrote: > > > > > >> Log: > > >> panic_cpu variable should be volatile > >

svn commit: r213775 - head/bin/sh

2010-10-13 Thread John Baldwin
Author: jhb Date: Wed Oct 13 13:22:11 2010 New Revision: 213775 URL: http://svn.freebsd.org/changeset/base/213775 Log: Make DEBUG traces 64-bit clean: - Use %t to print ptrdiff_t values. - Cast a ptrdiff_t value explicitly to int for a field width specifier. While here, sort includes.

svn commit: r213774 - head/bin/sh

2010-10-13 Thread John Baldwin
Author: jhb Date: Wed Oct 13 13:17:38 2010 New Revision: 213774 URL: http://svn.freebsd.org/changeset/base/213774 Log: Suggest that DEBUG_FLAGS be used to enable extra debugging rather than frobbing CFLAGS directly. DEBUG_FLAGS is something that can be specified on the make command line wit

Re: svn commit: r213772 - head/sys/dev/acpica/Osd

2010-10-13 Thread John Baldwin
On Wednesday, October 13, 2010 7:38:25 am Rui Paulo wrote: > Author: rpaulo > Date: Wed Oct 13 11:38:24 2010 > New Revision: 213772 > URL: http://svn.freebsd.org/changeset/base/213772 > > Log: > Mark acpi_bus_number() as __unused. This allows clang to this file > without any warnings. Actuall

Re: svn commit: r213769 - head/sys/geom/part

2010-10-13 Thread Stefan Farfeleder
On Wed, Oct 13, 2010 at 11:35:59AM +, Rui Paulo wrote: > Author: rpaulo > Date: Wed Oct 13 11:35:59 2010 > New Revision: 213769 > URL: http://svn.freebsd.org/changeset/base/213769 > > Log: > The canonical way to print __func__ when using KASSERT() is to write > ("%s", __func__). This avoid

svn commit: r213773 - stable/8/lib/libc/stdlib

2010-10-13 Thread Konstantin Belousov
Author: kib Date: Wed Oct 13 11:39:36 2010 New Revision: 213773 URL: http://svn.freebsd.org/changeset/base/213773 Log: MFC r213476: Add cross-references to lrand48(3) and arc4random(3) from rand(3) and random(3). MFC r213477: Missed space. Modified: stable/8/lib/libc/stdlib/rand.3

svn commit: r213772 - head/sys/dev/acpica/Osd

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 11:38:24 2010 New Revision: 213772 URL: http://svn.freebsd.org/changeset/base/213772 Log: Mark acpi_bus_number() as __unused. This allows clang to this file without any warnings. Modified: head/sys/dev/acpica/Osd/OsdHardware.c Modified: head/sys/dev/acpica/O

svn commit: r213771 - head/sys/fs/msdosfs

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 11:37:39 2010 New Revision: 213771 URL: http://svn.freebsd.org/changeset/base/213771 Log: Ignore the return value of DE_INTERNALIZE(). Modified: head/sys/fs/msdosfs/msdosfs_denode.c Modified: head/sys/fs/msdosfs/msdosfs_denode.c ===

svn commit: r213770 - in head/sys/dev: kbd kbdmux syscons

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 11:37:12 2010 New Revision: 213770 URL: http://svn.freebsd.org/changeset/base/213770 Log: Explicitly tell the compiler that we don't care about the return value of kbdd_ioctl(). Modified: head/sys/dev/kbd/kbd.c head/sys/dev/kbdmux/kbdmux.c head/sys/dev/sy

svn commit: r213769 - head/sys/geom/part

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 11:35:59 2010 New Revision: 213769 URL: http://svn.freebsd.org/changeset/base/213769 Log: The canonical way to print __func__ when using KASSERT() is to write ("%s", __func__). This avoids clang's -Wformat-string warnings. Modified: head/sys/geom/part/g_part.

svn commit: r213767 - svnadmin/conf

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 11:04:55 2010 New Revision: 213767 URL: http://svn.freebsd.org/changeset/base/213767 Log: Release dim from mentorship. Congrats! Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors ===

svn commit: r213766 - head/sys/netinet6

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 10:45:22 2010 New Revision: 213766 URL: http://svn.freebsd.org/changeset/base/213766 Log: Purposely tell the compiler that we ignore the return value of ADDCARRY() in the REDUCE macro. Reviewed by: dim, rdivacky Modified: head/sys/netinet6/in6_cksum.c

Re: svn commit: r213648 - head/sys/kern

2010-10-13 Thread Gennady Proskurin
On Sat, Oct 09, 2010 at 12:48:50PM +0300, Andriy Gapon wrote: > on 09/10/2010 12:33 Bruce Evans said the following: > > On Sat, 9 Oct 2010, Andriy Gapon wrote: > > > >> Log: > >> panic_cpu variable should be volatile > >> > >> This is to prevent caching of its value in a register when it is chec

svn commit: r213765 - head/sys/dev/aic7xxx/aicasm

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 10:33:01 2010 New Revision: 213765 URL: http://svn.freebsd.org/changeset/base/213765 Log: Define YY_NO_INPUT. This makes aicasm buildable by clang with Werror turned on. Modified: head/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l head/sys/dev/aic7xxx/aicasm/a

svn commit: r213764 - head/usr.bin/lex

2010-10-13 Thread Rui Paulo
Author: rpaulo Date: Wed Oct 13 10:31:32 2010 New Revision: 213764 URL: http://svn.freebsd.org/changeset/base/213764 Log: Don't define the input() function ifdef YY_NO_INPUT. This was previously done for the input() function. Submitted by: Norberto Lopes Modified: head/usr.bin/lex/

svn commit: r213763 - head/usr.sbin/sysinstall

2010-10-13 Thread Bruce Cran
Author: brucec Date: Wed Oct 13 09:33:26 2010 New Revision: 213763 URL: http://svn.freebsd.org/changeset/base/213763 Log: Use the RFC2606 domain example.com in examples. Modified: head/usr.sbin/sysinstall/tcpip.c Modified: head/usr.sbin/sysinstall/tcpip.c

svn commit: r213762 - in head/sys/mips: cavium cavium/octe conf

2010-10-13 Thread Juli Mallett
Author: jmallett Date: Wed Oct 13 09:17:44 2010 New Revision: 213762 URL: http://svn.freebsd.org/changeset/base/213762 Log: o) Make it possible to attach a PHY directly to an octe device rather than using miibus, since for some devices that use multiple addresses on the bus, going thr