From owner-p4-projects@FreeBSD.ORG Sun Jan 19 19:56:10 2014 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B175C928; Sun, 19 Jan 2014 19:56:10 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 74527926 for ; Sun, 19 Jan 2014 19:56:10 +0000 (UTC) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:1900:2254:2068::682:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 44D321806 for ; Sun, 19 Jan 2014 19:56:10 +0000 (UTC) Received: from skunkworks.freebsd.org ([127.0.1.74]) by skunkworks.freebsd.org (8.14.7/8.14.7) with ESMTP id s0JJuA1U066244 for ; Sun, 19 Jan 2014 19:56:10 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.7/8.14.7/Submit) id s0JJuA8Z066241 for perforce@freebsd.org; Sun, 19 Jan 2014 19:56:10 GMT (envelope-from jhb@freebsd.org) Date: Sun, 19 Jan 2014 19:56:10 GMT Message-Id: <201401191956.s0JJuA8Z066241@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 1190165 for review To: Perforce Change Reviews Precedence: bulk X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.17 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jan 2014 19:56:10 -0000 http://p4web.freebsd.org/@@1190165?ac=10 Change 1190165 by jhb@jhb_pippin on 2014/01/19 19:55:43 Update usage and some confusing language in the manpage for the 'device as selector' changes. Affected files ... .. //depot/projects/pci/usr.sbin/pciconf/pciconf.8#4 edit .. //depot/projects/pci/usr.sbin/pciconf/pciconf.c#4 edit Differences ... ==== //depot/projects/pci/usr.sbin/pciconf/pciconf.8#4 (text+ko) ==== @@ -67,13 +67,13 @@ .Ed .Pp The first column gives the -device name, unit number, and selector . -If there is no device configured in the kernel for the +driver name, unit number, and selector . +If there is no driver attached to the .Tn PCI -device in question, the device name will be +device in question, the driver name will be .Dq none . -Unit numbers for unconfigured devices start at zero and are incremented for -each unconfigured device that is encountered. +Unit numbers for detached devices start at zero and are incremented for +each detached device that is encountered. The selector is in a form which may directly be used for the other forms of the command. The second column is the class code, with the class byte printed as two ==== //depot/projects/pci/usr.sbin/pciconf/pciconf.c#4 (text+ko) ==== @@ -87,10 +87,10 @@ usage(void) { fprintf(stderr, "%s\n%s\n%s\n%s\n", - "usage: pciconf -l [-bcevV] [selector]", - " pciconf -a selector", - " pciconf -r [-b | -h] selector addr[:addr2]", - " pciconf -w [-b | -h] selector addr value"); + "usage: pciconf -l [-bcevV] [device]", + " pciconf -a device", + " pciconf -r [-b | -h] device addr[:addr2]", + " pciconf -w [-b | -h] device addr value"); exit (1); } @@ -734,8 +734,8 @@ { /* - * No device names contain colons and raw selectors always - * contain at least one colon. + * No device names contain colons and selectors always contain + * at least one colon. */ if (strchr(str, ':') == NULL) return (getdevice(str));