From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC406C2B9F4 for ; Fri, 25 Jun 2021 16:53:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE38761949 for ; Fri, 25 Jun 2021 16:53:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbhFYQzk (ORCPT ); Fri, 25 Jun 2021 12:55:40 -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