Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lHcoc-0006Xk-EQ for mharc-grub-devel@gnu.org; Wed, 03 Mar 2021 20:30:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHcoU-0006TU-BP for grub-devel@gnu.org; Wed, 03 Mar 2021 20:30:03 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:50685) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHcoS-0001k4-1c for grub-devel@gnu.org; Wed, 03 Mar 2021 20:30:02 -0500 Received: by mail-pj1-x102f.google.com with SMTP id b15so5402405pjb.0 for ; Wed, 03 Mar 2021 17:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UzDJFhk7x+cay91cXs71gvYEBEFFILhVDjsVW51buPg=; b=bgvG1NNgdak9/JXVFG29IzEFIU4EB1c5PYdNGI0NoUT09at+xkI6KITmdsqjh95v48 +ulPT3ysh9OoOJYeh4YMfx3d0Ox4Ye4jR0ucJfBKtsTHMn7xmCF5yK1ZecSDuwTSEf2T 4HXIu6w5i6esoMCZoCx8Gpt9OgOtO2m/Qj/WAJXMV+sdnjYjAZIeYj54Cb4u6Aycdpgt uPH0ph8NY8M5MbAAx6G45yHgwQ++n5EVPWCPwYr6X4a/6fq4YN41ntzz2s81A7CoZvH1 MGOLy+UCAcMTQpkki+xVp8zf/GEuW1d7iJBzbcEL/VLm7CeGZeVAQm7Q6tP6qsJBUmbo nuaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UzDJFhk7x+cay91cXs71gvYEBEFFILhVDjsVW51buPg=; b=naM8yN7zdrn42WR3PdD2IGCtxwWtlKjAnAAjKYzT/FfDn81CD/Z3u5oc5MeKGJG4aq v3AQLsdHRIz0LBQbrJPhoHeJMY0d7Un/6Q6hSLjNTxLpAYi2VWb6S2EBvyAD0bXnFYNU 8fNt5Im6V6ZrgOeJHxKND+7jeJsqa83ocX7/0cQ54Q0IiRdO37QHvMphFP4Ag96Wkawp tifAM0IjtZ7b8f9oXBIvfR8P2uaG2oufTIw9PspdxpZ2TgEVF00RZEuTlNVmYIryyVBy LhTKn+bEM3bV9BiaY/LTu8W9yadfsWYCO+q0TNxyLePvbNxLA8BFvEcwsBNNsDKg5XI4 dFRg== X-Gm-Message-State: AOAM5307j/i9/OxgIBeTnqsadSzzCr1+wsqVXWW0lrqE5TO1twajpUx1 MmSVUFFJgPHOCshTHQtUwtWjG6hQTolClQ== X-Google-Smtp-Source: ABdhPJwSkT0uvhFbBnsYE0vu99S2cJ/OW4cjGCBWKFKAryeHBMCcQwtgt0nfRKo21731IaPNzsySwA== X-Received: by 2002:a17:90b:201:: with SMTP id fy1mr1861743pjb.108.1614821398682; Wed, 03 Mar 2021 17:29:58 -0800 (PST) Received: from localhost.localdomain ([2605:a601:aac5:3700:a76b:9596:1e1a:28ee]) by smtp.gmail.com with ESMTPSA id c193sm318190pfc.180.2021.03.03.17.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 17:29:58 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH v5 06/13] pgp: Format code for grub_error is incorrect Date: Wed, 3 Mar 2021 19:29:11 -0600 Message-Id: <7f250aaa683c3172b1b8da61808f6e8a8551a552.1614820843.git.development@efficientek.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=development@efficientek.com; helo=mail-pj1-x102f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2021 01:30:04 -0000 The format code is for a 32-bit int, but the argument, keyid, is declared as a 64 bit int. The comment above says keyid is 32-bit. I'm not sure if the comment or declaration is wrong, so force the display of a 64-bit int for now. Signed-off-by: Glenn Washburn --- grub-core/commands/pgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/commands/pgp.c b/grub-core/commands/pgp.c index bbf6871fe..150cb6fe9 100644 --- a/grub-core/commands/pgp.c +++ b/grub-core/commands/pgp.c @@ -633,7 +633,7 @@ grub_verify_signature_real (struct grub_pubkey_context *ctxt, if (!sk) { /* TRANSLATORS: %08x is 32-bit key id. */ - grub_error (GRUB_ERR_BAD_SIGNATURE, N_("public key %08x not found"), + grub_error (GRUB_ERR_BAD_SIGNATURE, N_("public key %08"PRIxGRUB_UINT64_T" not found"), keyid); goto fail; } -- 2.27.0