Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lCvpP-0006QO-SI for mharc-grub-devel@gnu.org; Thu, 18 Feb 2021 21:47:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCvpK-0006M4-W3 for grub-devel@gnu.org; Thu, 18 Feb 2021 21:47:32 -0500 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:34342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCvpG-00007n-3b for grub-devel@gnu.org; Thu, 18 Feb 2021 21:47:30 -0500 Received: by mail-qk1-x72c.google.com with SMTP id t63so4353587qkc.1 for ; Thu, 18 Feb 2021 18:47:25 -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=Qeqj6G45l7W/a69NQlvPymW7PPP6L8j9CmKBGRZNntNrjhSPv7dtf8hnIuXK21AHZF V6+haj+VwlSjtg9DvvptjzO2t44Hey0NPkY2bpTTVDoxp04FNB0p6ilp6RgiwqZLbWGb 2L6b6UzdcGBRKaHugoF3fcZpVLAehb63IlexErM/dU6TluZoNhPyzQOVd4op7jEDOi3I QxT4nL8vTaYptakJ/1tV6tTZ2qC5k9iq8YOe94+sMjGx5DJs374G6mcHZZ6j4rwoLXy+ DoLFBuzQDPLg+Je7zx2PfCE1eiz8qrBtXfxLGSzAgB5uG83tMUBS0iUm6XC6jRSvghvF LcGA== 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=qnRseCLyIwPC8vGa8D6G0+4B5q/gOvYxqas3dCkWOeyhpw53dPYmunQfWvjeP7f4Zb ZdNLmBOrow8j4NaPAC44v3aR/ZN9qTUq2/NGKGL+okNwgKoH44cIAfHdVczStyDh0JN0 wqYFS28fuUsKFv2QM7gRvRTW6faz9F21K5ssZU2tzom4yusPomeM+oaHvln7RDoLKf9K 0L9vx2o4RD4jhpWT9HrK2reADOfuFVZW1Gw/KPphCPSrqutJzIpmNdWxpC0jTqNJVAxg 5AXFP4E3k9q6GLpEknvLnUXt69pNmqbNCaMDMWTiukB/+Hksn6iKx+8mgcgWFDzSKPjL /CWA== X-Gm-Message-State: AOAM5325MJlESxVFImJp7/NrnSnm79EgcsYl+XesVVmWv3DApkNfTCSN QgoRAZdPFSwLjxDJ2JAdX+pqXYIDVBlGZg== X-Google-Smtp-Source: ABdhPJz5yu/uRwddZJAUMx4sz8S/bpihk9w734vDk4w+9zXUNVHTekJsOLgFaECMjnyzcMOWitYi3w== X-Received: by 2002:a37:c93:: with SMTP id 141mr7225447qkm.206.1613702844552; Thu, 18 Feb 2021 18:47:24 -0800 (PST) Received: from localhost.localdomain ([2605:a601:aac5:3700:c323:c101:d96b:34f1]) by smtp.gmail.com with ESMTPSA id y2sm5341515qkj.56.2021.02.18.18.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 18:47:23 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org Cc: Daniel Kiper , Glenn Washburn Subject: [PATCH v4 06/13] pgp: Format code for grub_error is incorrect Date: Thu, 18 Feb 2021 20:47:07 -0600 Message-Id: <7f250aaa683c3172b1b8da61808f6e8a8551a552.1613700218.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::72c; envelope-from=development@efficientek.com; helo=mail-qk1-x72c.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: Fri, 19 Feb 2021 02:47:32 -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