Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lHyFq-0004gf-0K for mharc-grub-devel@gnu.org; Thu, 04 Mar 2021 19:23:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHyFe-0004Mx-3z for grub-devel@gnu.org; Thu, 04 Mar 2021 19:23:31 -0500 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:39367) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHyFW-0006TG-3B for grub-devel@gnu.org; Thu, 04 Mar 2021 19:23:29 -0500 Received: by mail-qt1-x834.google.com with SMTP id w6so445471qti.6 for ; Thu, 04 Mar 2021 16:23:18 -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=6qBNKyE/8UvrQSEM1Xu7j+SirQqFr/0J8WopPca9/64=; b=RHUGG/M6dqJ4CIjxSBoreb/rRma2YPjB8qbiGIagJlsflZFBnmgYzkMs3n3p/gjihc GJw+U3NHsLYeaPTB3+n28C5GBHlpY+uT8Ou7jqMz8RKmReEFTj52nx7oesuYBtNdWVw6 wxLvgAqEDC3rlr0Ee5+FjqQeSQuNktBAjU4E40Et4draJW6ogHOqSRx3TWmLyNz1oM4p WBSQlIAUbyMJ1yy1Sxet6uK5rsmphqmvJUF4MD0KZzdWnpZtFbLOOrWtZ2IoYKKLScu3 qEXD5oGFA3lK2qIRK1xud7yz+qdOTNJQXlDIfaZ6o60d+H+uYxuWPosSVRaLGn+12oav QcMQ== 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=6qBNKyE/8UvrQSEM1Xu7j+SirQqFr/0J8WopPca9/64=; b=lwdXtbbpMA9mbkWMJlytz9e4pjdvNYWaWeSZ1FbpKGzg/n9HMB0aappZ9spA4Hfz6j HecyeAlSNlBRWDe9bzstSPDlF98s9eemgBhxnKEnWU9pyISKLlH6EvGWfW+1oeHmsznX otgZ2fcy/U6Sg96nPfiNNlB9grYI+MDOVxNyLO/n6Sqru1UHTGFC3TOAqha+jIiSBE20 XEdJcIKuOfbeacxGqvvpCJ4Xj9VQIkFPnuvFsrn3CkKr7jvWRWTBZu5pDMeC1Ed6wycW rLl/Wn4r+ldYoMg7dqsYB3ELarn6fPKcufXl3FSZbglsQ7OYhFGlSFyHgfJ4d52W5ZQl nSHw== X-Gm-Message-State: AOAM530/GAX0V/00pXLoBVlkhkLBvlk/AaQ8fVHnn3sgpIyiDw53Lys4 3RajxpH86TwD36dWVUQdP6fWvXRGZZlQhQ== X-Google-Smtp-Source: ABdhPJxi02fv2VkyY4JKBkLUvAmM8mdleHXWbeYDV7UvI4FD5Zqv0tPhT+rpb0G1agdgMy+ItPeRNg== X-Received: by 2002:aed:34c6:: with SMTP id x64mr4840609qtd.40.1614903798078; Thu, 04 Mar 2021 16:23:18 -0800 (PST) Received: from localhost.localdomain ([2605:a601:aac5:3700:9763:81c2:19e4:8a8f]) by smtp.gmail.com with ESMTPSA id 75sm674558qkd.114.2021.03.04.16.23.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 16:23:17 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH v6 12/14] error: Use format code llu for 64-bit uint bp->blk_prop in grub_error Date: Thu, 4 Mar 2021 18:22:43 -0600 Message-Id: <88a885a40bcb2220d388ddb4f0142e751b1cea9f.1614903653.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::834; envelope-from=development@efficientek.com; helo=mail-qt1-x834.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, 05 Mar 2021 00:23:32 -0000 This is a temporary, less-intrusive change to get the build to success with compiler format string checking turned on. There is a better fix which addresses this issue, but it needs more testing. Use this change so that format string checking on grub_error can be turned on until the better change is fully tested. Signed-off-by: Glenn Washburn --- grub-core/fs/zfs/zfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grub-core/fs/zfs/zfs.c b/grub-core/fs/zfs/zfs.c index 9ef2fd61a..f9e755197 100644 --- a/grub-core/fs/zfs/zfs.c +++ b/grub-core/fs/zfs/zfs.c @@ -1869,8 +1869,8 @@ zio_read (blkptr_t *bp, grub_zfs_endian_t endian, void **buf, { if (BPE_GET_ETYPE(bp) != BP_EMBEDDED_TYPE_DATA) return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET, - "unsupported embedded BP (type=%u)\n", - BPE_GET_ETYPE(bp)); + "unsupported embedded BP (type=%llu)\n", + (long long unsigned int) BPE_GET_ETYPE(bp)); lsize = BPE_GET_LSIZE(bp); psize = BF64_GET_SB(grub_zfs_to_cpu64 ((bp)->blk_prop, endian), 25, 7, 0, 1); } -- 2.27.0