Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1310031pxv; Fri, 25 Jun 2021 09:55:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnW8dFqt8uiiPywXh8ZJwzm6yTNxKs4fUBXc88ASkUw/2aNWdFGKQrUukqzsGWaNIk/poK X-Received: by 2002:a17:906:40c5:: with SMTP id a5mr12318860ejk.433.1624640157259; Fri, 25 Jun 2021 09:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624640157; cv=none; d=google.com; s=arc-20160816; b=hkDHqK+WaA3m4xVKynMIiuClAJzfQfZ0N+S2GhBNHCzsMaJG5jQ3xE0B9lSUv9Dw6R XLYRHqxUXjUiPitFaDtM9zbftrR2onJsjVXZdTOe4dv3ZJWNSMPcrvR3rMNKMXOCokV6 1FG89cP7vNpGO1HV2l5JZRQaQnUycdDTCdf6FM/Wtp2d8bhezVWUuR+tTwhLweU/XzEa B1+pjOowzYOyeQ1UT0JEULerpFHhPeFIaLyaoI39LxqFheJPQow/mFH/85OtJwFvauD1 oY+WYaTX9+0NBpW+OTKkk75InfrRIvHoJqW3I/huZ7FHsWwgPVZHEJPbKkPlldwQc6bV 6rXg== 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; bh=5oglbtDoCqv1rrsijHZLgwPJuabYmtu6XSdtgQz57Bw=; b=WCA95cKHr2c0NQxGUJmK8b1UuCrgtQNRQ+TL60Qkyy4XR2YRURTuotErQGsA5fQnF9 GKtkKjFPsEF1eKZHMJdPb1QRZwyLkSbcqghrup5DkJPwgP3EOknGBegK36YoMl83IJDP L30pmgiLJMER2Hce1U8wAr+36Q2vkunnHFSdh4XrbXsFWg6Aq/Zmviy2rOYtNPZOPiZ2 8uqk8s9/wwrnHiZAZEoOhhP9hQGOLZ8FMxG1hIBgYfYGtf4Yli0YSbZB/7j33TWFis8y Ms/GGBlxNT0GsplScq15pKGyutbc0VLpyTO3bI/GTmR09wjDnfiw3j92Br3w8b38U4Cf /uKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="Fz6hzC/d"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si3674579edd.587.2021.06.25.09.55.34; Fri, 25 Jun 2021 09:55:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="Fz6hzC/d"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbhFYQzj (ORCPT + 99 others); Fri, 25 Jun 2021 12:55:39 -0400 Received: from mail.skyhub.de ([5.9.137.197]:46280 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbhFYQzi (ORCPT ); Fri, 25 Jun 2021 12:55:38 -0400 Received: from zn.tnic (p200300ec2f0dae005eaeb42c95705db7.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:ae00:5eae:b42c:9570:5db7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 9C82C1EC0595; Fri, 25 Jun 2021 18:53:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1624639996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=5oglbtDoCqv1rrsijHZLgwPJuabYmtu6XSdtgQz57Bw=; b=Fz6hzC/dAe73l8J3h7q3W3oJDTQQpeP/857Y2zyrbsLL6+qYVWP+/UkwBW/QQDM+QOP+ms o4LDOjLomxx6O+e9IpcyV+uxmFgfQK3qa6i1WRKlyvO/AEg9ybDRAXAirPkfthyU8Tj2vl V8mUpspV+w9CN+2Tc/RmZFS98UH5GNM= Date: Fri, 25 Jun 2021 18:53:10 +0200 From: Borislav Petkov To: "H. Peter Anvin" Cc: Greg Kroah-Hartman , x86@kernel.org, Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH] x86/tools/relocs: add __printf attribute to die() Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 25, 2021 at 09:19:38AM -0700, H. Peter Anvin wrote: > You can use PRIu32/64 or cast to unsigned long long; it's not like the > performance for this case is going to matter one iota. Why "unsigned long long"? Those fields are typedeffed as: typedef __u32 Elf32_Off; or typedef __u64 Elf64_Off; respectively so they should fit in an "unsigned long" on the respective width. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette