Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lHcot-0006rz-Hb for mharc-grub-devel@gnu.org; Wed, 03 Mar 2021 20:30:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHcor-0006ok-A8 for grub-devel@gnu.org; Wed, 03 Mar 2021 20:30:25 -0500 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:43211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHcoj-0001qq-53 for grub-devel@gnu.org; Wed, 03 Mar 2021 20:30:23 -0500 Received: by mail-pg1-x532.google.com with SMTP id n10so17722832pgl.10 for ; Wed, 03 Mar 2021 17:30:16 -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=HT+lnmDKvUXO2OWUWus+igzTYOwnoa7mfzkw3aSZJuo=; b=ztgZbx1h0FdVleUaHfaOkHwNPmiJ/e40JxQ2uC47VB+mhF+2rUBf7j7JAFJLR4kk5U eQ8x62t6aWcFW4k9looWZA4DnpCM2weSJdcvCsio4Xb0wRYGZ/6cRnutGW2G16BKSuDc sRKJpAxsiizVliqd9foLZ4YTr3OkoQDpw5ZWjP6P/XIHj60+jHEVYXhi2YBNXjt6kKVA Uk1JdnJ8hwoGt9wsVzTaFD6//UT4fDdns2opfM3Ls1B/BwyLpOOLH4lnlcaeY2ltpbKl B6Axcu9tEz9vjxtCnQU9QnvGCnUKdDgJyIcu89XELhU1fMeibGBdGMg/uNw5AdyYE1vj 6kNw== 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=HT+lnmDKvUXO2OWUWus+igzTYOwnoa7mfzkw3aSZJuo=; b=K+R/gur9hMVw0xtrbHyvoU99I1CsHYHyCAArxUxjLklGUaq02K413q0Evqtq3zqoZN ROaqdQMg/z7T1R20HfmrP9o1HQlO2Dnu9ER8+iDjTN1cuutJrIIiPUhXykCRNL8gn6o1 sGVfAKSjL6nyhFPGTzsn2UEAvmgi3qtUjZzdWDNDhVi34JzTl9UqQh1g2jICsISEdusz eWvl9CJQzz25E3dGA+RQaFgv2oQCHFSIK8X0CTeLXUt5QJonJ+qC6Zaqkhse4VwvMWXR vdOgwHjC/lueB+9MNEhDlvH3detV4cbr45RqZINTCW6cxkpEiURJn9ioXxA+A7ofQQn2 n+6A== X-Gm-Message-State: AOAM5317PaWxzvKv1+1uaATUeqkc6flgZQIXVlCXQwUhdQ5+DJyGbz8O knPtMNIS6U8xnW3rTqv/AU/bmzeJL5eaIA== X-Google-Smtp-Source: ABdhPJzHOpn0Lt3SepYuALFuJVpDPuETiVTgOozjPAxOEo/tEC98v4QeWb5FAGCQ6nJKiehfnrg0NQ== X-Received: by 2002:a63:4c4e:: with SMTP id m14mr1561249pgl.35.1614821415164; Wed, 03 Mar 2021 17:30:15 -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.30.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 17:30:14 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH v5 12/13] error: Use format code llu for 64-bit uint bp->blk_prop in grub_error Date: Wed, 3 Mar 2021 19:29:17 -0600 Message-Id: <1dfc86c840fdefa3ab94a97d8e8fb63c788b9999.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::532; envelope-from=development@efficientek.com; helo=mail-pg1-x532.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:25 -0000 For some reason PRIuGRUB_UINT64_T is not expanding to llu, but to lu, which causes the format string check to fail. Use literal and force cast until this is debugged. 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 b6e1e178d..a3691d220 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