From owner-svn-src-all@freebsd.org Tue May 9 23:39:30 2017 Return-Path: Delivered-To: svn-src-all@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 0F1D9D669A6 for ; Tue, 9 May 2017 23:39:30 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (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 CDF3C1083 for ; Tue, 9 May 2017 23:39:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x234.google.com with SMTP id c15so15458126ith.0 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=tjV6wUW/+h9WLuzTvv8Tj6Xek5IMZ8jbx6k6dLy8BJ2DGLENvAM5Fn1WWvsxnjUZ1Z vKcCyrHN0wtEM/KnPnWuEufkdmnPmQy79n56/9EGAj4KezXGyfgHwGBdDVJkMyYPmXjc 7DHZQ10WXp6jPSUvmKuL6jMF1vJeaxJyc7hxCsSAjzY5EB7Mq2cD1o5Vht87ljNy0cSq TRjCbmcWA+dI8ShlYSAe8Phk7AAETFZhj39Txvs570e+uTikHr3iR6bKJLJ/se5WXGtC RY78a9uDS0l+jKqSIxW26CQHZRJ3biA4RjY/etKud9MVUTpcpZWChNDCFoteGkjD/TKD PGjQ== X-Gm-Message-State: AODbwcBQ0KxSYOe3bZZQHc7IrwmLLY/gjyEqYkaudABqMde5AyCdSK3r f+yHl593a3YYv6ckmAh+5IIWW9EICQ== 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-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" 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 > >