From owner-svn-src-head@freebsd.org Thu Feb 16 06:44:56 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 1C591CE1F2A; Thu, 16 Feb 2017 06:44:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7EAC01BEB; Thu, 16 Feb 2017 06:44:55 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id v1G6ij1g005502 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 16 Feb 2017 08:44:46 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua v1G6ij1g005502 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id v1G6ijY4005501; Thu, 16 Feb 2017 08:44:45 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 16 Feb 2017 08:44:45 +0200 From: Konstantin Belousov To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r313798 - head/bin/ls Message-ID: <20170216064445.GH2092@kib.kiev.ua> References: <201702160632.v1G6Wdnb066617@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201702160632.v1G6Wdnb066617@repo.freebsd.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home 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: Thu, 16 Feb 2017 06:44:56 -0000 On Thu, Feb 16, 2017 at 06:32:39AM +0000, Konstantin Belousov wrote: > Author: kib > Date: Thu Feb 16 06:32:39 2017 > New Revision: 313798 > URL: https://svnweb.freebsd.org/changeset/base/313798 > > Log: > Use uintmax_t to print st_nlink. > > Sponsored by: The FreeBSD Foundation Reported and tested by: pho Sorry. > MFC after: 1 week > > Modified: > head/bin/ls/print.c > > Modified: head/bin/ls/print.c > ============================================================================== > --- head/bin/ls/print.c Thu Feb 16 06:31:36 2017 (r313797) > +++ head/bin/ls/print.c Thu Feb 16 06:32:39 2017 (r313798) > @@ -259,12 +259,12 @@ printlong(const DISPLAY *dp) > np = p->fts_pointer; > xo_attr("value", "%03o", (int) sp->st_mode & ALLPERMS); > if (f_numericonly) { > - xo_emit("{t:mode/%s}{e:mode_octal/%03o} {t:links/%*u} {td:user/%-*s}{e:user/%ju} {td:group/%-*s}{e:group/%ju} ", > - buf, (int) sp->st_mode & ALLPERMS, dp->s_nlink, sp->st_nlink, > + xo_emit("{t:mode/%s}{e:mode_octal/%03o} {t:links/%*ju} {td:user/%-*s}{e:user/%ju} {td:group/%-*s}{e:group/%ju} ", > + buf, (int) sp->st_mode & ALLPERMS, dp->s_nlink, (uintmax_t)sp->st_nlink, > dp->s_user, np->user, (uintmax_t)sp->st_uid, dp->s_group, np->group, (uintmax_t)sp->st_gid); > } else { > - xo_emit("{t:mode/%s}{e:mode_octal/%03o} {t:links/%*u} {t:user/%-*s} {t:group/%-*s} ", > - buf, (int) sp->st_mode & ALLPERMS, dp->s_nlink, sp->st_nlink, > + xo_emit("{t:mode/%s}{e:mode_octal/%03o} {t:links/%*ju} {t:user/%-*s} {t:group/%-*s} ", > + buf, (int) sp->st_mode & ALLPERMS, dp->s_nlink, (uintmax_t)sp->st_nlink, > dp->s_user, np->user, dp->s_group, np->group); > } > if (S_ISBLK(sp->st_mode))