From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-2.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 5B133208B4 for ; Wed, 9 Aug 2017 07:26:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752456AbdHIH00 (ORCPT ); Wed, 9 Aug 2017 03:26:26 -0400 Received: from vie01a-dmta-pe06-1.mx.upcmail.net ([84.116.36.14]:57443 "EHLO vie01a-dmta-pe05-1.mx.upcmail.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752448AbdHIH0Z (ORCPT ); Wed, 9 Aug 2017 03:26:25 -0400 Received: from [172.31.216.44] (helo=vie01a-pemc-psmtp-pe02) by vie01a-dmta-pe06.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1dfLNo-0005vX-4S for git@vger.kernel.org; Wed, 09 Aug 2017 09:26:24 +0200 Received: from master.zuhause ([80.108.242.240]) by vie01a-pemc-psmtp-pe02 with SMTP @ mailcloud.upcmail.net id uvSD1v03C5BuuEg01vSExE; Wed, 09 Aug 2017 09:26:15 +0200 X-SourceIP: 80.108.242.240 Received: by master.zuhause (Postfix, from userid 1006) id C760945D4512; Wed, 9 Aug 2017 09:26:13 +0200 (CEST) Date: Wed, 9 Aug 2017 09:26:13 +0200 From: Martin Koegler To: Martin Koegler Cc: Junio C Hamano , git@vger.kernel.org, Johannes.Schindelin@gmx.de Subject: Re: [PATCH] Convert size datatype to size_t Message-ID: <20170809072613.GA20347@mail.zuhause> References: <1502222450-20815-1-git-send-email-martin@mail.zuhause> <20170809071906.GA19310@mail.zuhause> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170809071906.GA19310@mail.zuhause> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Wed, Aug 09, 2017 at 09:19:06AM +0200, Martin Koegler wrote: > On Tue, Aug 08, 2017 at 11:04:20PM -0700, Junio C Hamano wrote: > > As https://travis-ci.org/git/git/jobs/262463159 shows, unfortunately > > it turns out that things are not so simple X-<. On Linux32, size_t > > is uint, which is the same size as ulong, but "%lu" is not appropriate > > for showing a size_t value. > > > > So you are correct to say in the comment under three-dashes that > > there is much more to change in the codebase. > > I'll post a new version fixing the *printf issues. What is the correct format specifier for size_t? Linux has %zu (C99). Is that OK for the GIT codebase? Regards, Martin