Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1476568rwb; Fri, 5 Aug 2022 02:38:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ST+VEOt8EwdwFZIA6pd5GFkii0gRFJtyEU3gisk+gfQFLtEVQCj3Gj9ZTXkTIrlUzXx4x X-Received: by 2002:a17:902:a418:b0:16c:9ee2:8a02 with SMTP id p24-20020a170902a41800b0016c9ee28a02mr5991431plq.46.1659692310456; Fri, 05 Aug 2022 02:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659692310; cv=none; d=google.com; s=arc-20160816; b=xO9ASYtFx34h0bpMQ8oYf/qISXKn3C6q3KQ84x6K2p7MrsXHeib7oiJDg0J7f2zf8a gBQpiynCczKTGDfH5DmPoC81J/uKtRpkQQ9vZCEJ4eNx3q2m0sp4JlAi03osJH4q8aqK tPCT27wJStDaKkBrjgxQMq32URX1L0sM+uN3G/pqgzgTv/Gh3vnqqElMXu9xAZvKCq+N TpETr5ngT1xTBPva2uIuczZ0tTEG8Uv9gHHSsWzoH/iOX6UYn6PC/nexvnRjUmR53Ob3 DaIVTj5bmffTVOlkfHTiQMCbjRunpgjpoE3M11wKc+X6lQH1OenswYogCqjuYx9YW8Sa SGpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=0G0uLbaaUiW/DLpzUjyIgCLqiJXod15Uj+qglPR6Ej4=; b=vqDD5HCWS4t/qkV2+kUcJl3QOve0QacKRaWGYtvf9V2KGOdzQr15CrSavhkHh/sAhT lk+7pcEP2REnIcG2sduEKPVXrtE4TJ5ye22DQMmMO5pos+1rSx6aeRe5f89qwMAt2zJh KISxZ5TRreU4BbSubrZgHM+tIclaAtzFSgKY6nnbFkXujAdASPZ1Abq4XVILZLMTiMDm eornBnTrvMO9LUZo2yuAEBWPzQCh8acgpZYIHUeADxMZeAEVujcp3+O4QI/cMFpCU5+J jKOaSljmwRgmD4azS3yH/HafavRia2yzlZpTn3WUpr5K51+YJfn5V7Vqkkz/znYJs+p4 3c3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=DiG4+kEv; dkim=neutral (no key) header.i=@suse.cz header.b=TcNaoQLg; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a170902d89400b0016bcfc5f7f0si3159483plz.127.2022.08.05.02.38.06; Fri, 05 Aug 2022 02:38:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=DiG4+kEv; dkim=neutral (no key) header.i=@suse.cz header.b=TcNaoQLg; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236064AbiHEJcp (ORCPT + 99 others); Fri, 5 Aug 2022 05:32:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235839AbiHEJco (ORCPT ); Fri, 5 Aug 2022 05:32:44 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52DF9101CA for ; Fri, 5 Aug 2022 02:32:43 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E860B20329; Fri, 5 Aug 2022 09:32:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1659691961; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0G0uLbaaUiW/DLpzUjyIgCLqiJXod15Uj+qglPR6Ej4=; b=DiG4+kEvZb0XL9LNyqQuxyQ4heGbqtkXj147kiK51B3SU1MbNOmweDNi4OEDFWxJYGHa50 hxo0911gwwEvVXYcJ4v1hzICycT+xW6Ygtmi11HO4PtHg+inyGAZduIsvBqAmh+Lu01CoN NEV4tksgilVnCnwo4FgiGFQ0fWivEtE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1659691961; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0G0uLbaaUiW/DLpzUjyIgCLqiJXod15Uj+qglPR6Ej4=; b=TcNaoQLg5nXFkEYsiH6XbI2L9Z3d1Z/jR36TPE4J8WgAcxCgdBAXmCu4zQxau9Y4x9Y4j3 UeyLagjbiK++5gDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C7F7E133B5; Fri, 5 Aug 2022 09:32:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gkb7Lrnj7GKHVQAAMHmgww (envelope-from ); Fri, 05 Aug 2022 09:32:41 +0000 Date: Fri, 5 Aug 2022 11:34:31 +0200 From: Cyril Hrubis To: Petr Vorel Cc: ltp@lists.linux.it, linux-nfs@vger.kernel.org, Andrea Cervesato Subject: Re: [PATCH 1/1] aiodio: Fix format string for 32bit Message-ID: References: <20220803173211.14292-1-pvorel@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220803173211.14292-1-pvorel@suse.cz> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi! > On 32bit char pointer is int and size_t is unsigned int, > Cast to long / unsigned long. Actually char pointer is char pointer, that is not an integer type at all. If you do a pointer difference you end up with an signed integer value of ptrdiff_t type, because unlike the result of sizeof(foo) pointer difference can be negative as well. In C99 ptrdiff_t can be printed as %td see the "Length modifier" part of man 3 printf. -- Cyril Hrubis chrubis@suse.cz