Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp751676imm; Fri, 1 Jun 2018 08:57:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJt3r8SIV0G0ZiEjtX3rEfcqhVn+ikEnQnPradCFb2Uh1oWvey398Eh9pSOjZI0jxP7GSrl X-Received: by 2002:a62:9f16:: with SMTP id g22-v6mr5920160pfe.207.1527868622618; Fri, 01 Jun 2018 08:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527868622; cv=none; d=google.com; s=arc-20160816; b=AdK7/yzBDmeyfwLjIJVFaZw7uR+Y9/nOYNoPmTXmPsNfTvj48bydCMTgXEgi7xKoqC R1OmXy6JvY+nVKIwMMCm9JfT8z9r+0CI/y1SI5EJ6oEbbyIk/ep1BmjDsFlrvC9pm4Z3 FbcSVgMjfY6p2nFq3Ecf/ZU2+a8i5SM0sigTUcObJrrLDeIwBjYl3k2yI1tiDP/+1ViP jsev6uaTTnDgZmxrNmxPN4PRaj9aoYr8nVaal826KoVSffb9tnUIuSUw4fNty278PN9i 6hvmWfKDdo3mAKFlfr2+ERFPS6Z09TYSLfDaVVsFKptTZZNJRKQcaQc1jCKW4tgYYAMJ 3zdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=u7otTe4USc/WQZm28rafcJTTca3p/VYcyvKk7tkzhzI=; b=Hdd7BQ4+JXgYacNzHUwihFm2ghrRZVInc3ef/X7RUrZqoKCjb8fgWEaDgaDuBw2Rqg vWO1ZfJ9HM2/h+HWpdHDSMrjm71N844Fgp1eyMlK+T7U32xaVHmsE+ZyQKvss9tkDlit 6TkXBSKWRxZBopef7fuTCvZhZwxC02kHl6wKg8ywtI1rtZtPHowIiMy4Cg+tzKgh4KJ/ OzRGAsGu40bo3X5kyTOvv4n19Rsbu/+Lh6n8ayYY3oBZL5zSluiHnONlEFlhMa8FfbFm 5Qj11sUwZ3xVZJkwFCkk3DvXqSFM1TG0Xs0OfEIib0g8xr8EMCYUU61WlJfKAbsUgAXQ dg2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17-v6si943602pfe.205.2018.06.01.08.56.48; Fri, 01 Jun 2018 08:57:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753234AbeFAPzQ (ORCPT + 99 others); Fri, 1 Jun 2018 11:55:16 -0400 Received: from ozlabs.org ([203.11.71.1]:49787 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753046AbeFAPzD (ORCPT ); Fri, 1 Jun 2018 11:55:03 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 40y86Y5sSdz9rxs; Sat, 2 Jun 2018 01:55:01 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 8af1da40669609707303eecdb857f48a5ba5792d In-Reply-To: <20180529192001.30200-1-malat@debian.org> To: Mathieu Malaterre From: Michael Ellerman Cc: Stephen Rothwell , Mathieu Malaterre , linux-kernel@vger.kernel.org, Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: Re: powerpc/prom: Fix %u/%llx usage since prom_printf() change Message-Id: <40y86Y5sSdz9rxs@ozlabs.org> Date: Sat, 2 Jun 2018 01:55:01 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-05-29 at 19:20:01 UTC, Mathieu Malaterre wrote: > In commit eae5f709a4d7 ("powerpc: Add __printf verification to > prom_printf") __printf attribute was added to prom_printf(), which > means GCC started warning about type/format mismatches. As part of that > commit we changed some "%lx" formats to "%llx" where the type is > actually unsigned long long. > > Unfortunately prom_printf() doesn't know how to print "%llx", it just > prints a literal "lx", eg: > > reserved memory map: > lx - lx > lx - lx > > prom_printf() also doesn't know how to print "%u" (only "%lu"), it just > print a literal "u", eg: > > Max number of cores passed to firmware: u (NR_CPUS = 2048) > > instead of: > > Max number of cores passed to firmware: 2048 (NR_CPUS = 2048) > > This commit adds support for the missing formatters. > > Fixes: eae5f709a4d7 ("powerpc: Add __printf verification to prom_printf") > Reported-by: Michael Ellerman > Reported-by: Stephen Rothwell > Signed-off-by: Mathieu Malaterre Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/8af1da40669609707303eecdb857f4 cheers