From owner-svn-src-head@freebsd.org Tue May 9 23:39:30 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08405D669A5 for ; Tue, 9 May 2017 23:39:30 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22e.google.com (mail-it0-x22e.google.com [IPv6:2607:f8b0:4001:c0b::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CDF781084 for ; Tue, 9 May 2017 23:39:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22e.google.com with SMTP id o5so15469521ith.1 for ; Tue, 09 May 2017 16:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=TM4N0GPA34R+/vLn2bQiTOB+AMB2jhrUKSuzYFvAuzk=; b=fXZmz1wI1xA8ekRmyrFJwA+jrdQ1pTQjquRndBv+fqlmItRHv2g9VncRVwEGplO3Rv Y+sagxumQhAHJxxUIg3PCs37pOc3QhM4Qmhwemst02o19cVRsdxeDpnb47N43nyJraYb QWC7SylbYkuJ9DzkXdbWHuu3x2en2yZyyig0Y0tbLVau2IlefCcO6bOhLDtOcddvesw5 kot8zyJRCNub2j8HALH7WXNfwPaBnNflYfVyEGPauMAyNvFRfUcXucfRP/USzPx0pa1Y pJhy6AqGrJXHtDokt3wHOehsNLODS++7z9MQXH5vRmWG4AVlfXug2kvdzWsqMMwZ0gTH RTfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=TM4N0GPA34R+/vLn2bQiTOB+AMB2jhrUKSuzYFvAuzk=; b=fTSGCMra2SNoPNhS6J5HIvHW+VpYh1Csh6uhtN5Bvj82XLUZKWKO+LlxIBU0rlS3ig rQvLQAKfE/6K9xVAkGYm0OOYTqU1LC+M4smHIDWAbaMsrdirFgTo89mret3NjdFpVdy6 MzRTUMgPm9Mdz3YlJ5YcrTn18l4pYVMNhA0LwE+L04klHtVonl4CORzHpCswbzxVRVYp 92qXjN6CU+0hVSX3I3UsZSqPZyAeRKfXvqYN8yjyGMYgiG/LYHB+5sYfr1VixlFHzTFK i5mU2uOxonzHaOROSB7v0xXZh9D6+B0sVPLzgOcLuzSY0a/6uEs34jI/hLT31lVJv/lK dcyg== X-Gm-Message-State: AODbwcBJ7Zr6r0yFPHGdhZaJgIOt9e2Ft7X+YNUBbJsGbAo3ili1MKNO UxVcsAOR3FVIknajEes51i074fZfLA== X-Received: by 10.36.181.1 with SMTP id v1mr2947613ite.103.1494373168900; Tue, 09 May 2017 16:39:28 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.126.6 with HTTP; Tue, 9 May 2017 16:39:28 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:d47:7464:7e21:6b87] In-Reply-To: <1494372587.59865.9.camel@freebsd.org> References: <201705090836.v498a9JJ035778@repo.freebsd.org> <1494372587.59865.9.camel@freebsd.org> From: Warner Losh Date: Tue, 9 May 2017 17:39:28 -0600 X-Google-Sender-Auth: gB-KnWWI0J9UiFl0Pbl25KTP1os Message-ID: Subject: Re: svn commit: r318017 - head/share/man/man4 To: Ian Lepore Cc: Edward Tomasz Napierala , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2017 23:39:30 -0000 It's the passed in radix. In this case it is 32: len = vsnrprintf(dev->si_name, sizeof(dev->si_name), 32, fmt, ap); so we get things like ttya following tty9. It should be in printf(9), but isn't. Warner On Tue, May 9, 2017 at 5:29 PM, Ian Lepore wrote: > On Tue, 2017-05-09 at 08:36 +0000, Edward Tomasz Napierala wrote: >> Author: trasz >> Date: Tue May 9 08:36:09 2017 >> New Revision: 318017 >> URL: https://svnweb.freebsd.org/changeset/base/318017 >> >> Log: >> Fix device paths for USB serial adapters: the formatting strings >> contain "%u", differently from eg uart(4) which uses "%r". >> > > What is %r and where is it documented? > > -- Ian > >