Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lCvpL-0006MH-3Y for mharc-grub-devel@gnu.org; Thu, 18 Feb 2021 21:47:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCvpG-0006KC-C4 for grub-devel@gnu.org; Thu, 18 Feb 2021 21:47:26 -0500 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:32823) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCvpD-00006p-9g for grub-devel@gnu.org; Thu, 18 Feb 2021 21:47:26 -0500 Received: by mail-qk1-x733.google.com with SMTP id b14so4371529qkk.0 for ; Thu, 18 Feb 2021 18:47:22 -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=hCDWWwirCBY7iFrzo2z6HQUSHfn/UhwQs5oBhO1RbNQ=; b=Snlu1ZOQEVxnZXtLE36uhanFmU6xAXRySWsRa+FCWsq1lThGyzl/JhuwePGEgvvZlu cVlmhpDF76yOQt84g6sFd6GLVpiiY1TVxVSx4GmYNrtjRAjgLntZsWq9GH4WuH5wm3nv g2853Xhv77Hoiedqb8eD5oTVC36jlPCQw2QRGbYbGT+f8fn7Dh6OC9Eo7aY+V7ufA/pL nIM1XKpjq73fmmg99QNptckr42joshHp2mxkb/8RIjTl9Wn6j+5LBeAuqGrEU9Pf6vte Udq4yXgBs2PNIKrogBmV6oUaAeY0E1Nts+CShnPemtuFQnis7pBBW6BBciV5yBJZ64Uu koIQ== 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=hCDWWwirCBY7iFrzo2z6HQUSHfn/UhwQs5oBhO1RbNQ=; b=eTmLJtKtQd54DirAmHmUXG1bErQ6Vvq44leZcRDLLoBrXyEPt6iXqpYtK61p4sOOQb qb+5DMF26z7PxgMueY+6SvGy5+nKj8bdQh+5dTAYfm+r8T/eYyWg2S8e0vBHCoijNL8D KUMGgwGV/Cyt+cZe9IqV0uuY/1KsOcaSr9xONsQiRJDdPPLjXhsZUWPB2q+79ZM1prF8 7Y0GTwwlu/xYaOew94v3PKMK+4THn3Q9dFzD8h6e2o6xozPjXtvHGBxwFRjvVPJ6BdaW iSvouSgH3Ly1LLCUFlbTtpefvBiKN/yDvTYc+DdBaCDjgedc+vVUMb5gB9e6JAHpYbjK Z7GQ== X-Gm-Message-State: AOAM531gNgccbR5cC5oPzv2wrG+YCK8AyqDhdmwbFiRuNHpW0wIJ8GZ0 3KI0BpYLkizGypehcaGE3bVyqWalMjENbg== X-Google-Smtp-Source: ABdhPJyChdvgKRktjmVJ22XS5VmhaRfVvHBxUzsugSQhd0OET2pjnST5y1V5JnvcPHOwADmxkjOkag== X-Received: by 2002:a37:6691:: with SMTP id a139mr3799524qkc.6.1613702842314; Thu, 18 Feb 2021 18:47:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 18:47:21 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org Cc: Daniel Kiper , Glenn Washburn Subject: [PATCH v4 04/13] dmraid_nvidia: Format string error in grub_error Date: Thu, 18 Feb 2021 20:47:05 -0600 Message-Id: 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::733; envelope-from=development@efficientek.com; helo=mail-qk1-x733.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:26 -0000 The grub_error has a format string expecting two arguments, but only one provided. According to the comments in the struct grub_nv_super definition, the version field looks like a version number where major.minor is encoded as each a byte in the two-byte short. Signed-off-by: Glenn Washburn --- grub-core/disk/dmraid_nvidia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/disk/dmraid_nvidia.c b/grub-core/disk/dmraid_nvidia.c index 4d2fb04d1..6372663e6 100644 --- a/grub-core/disk/dmraid_nvidia.c +++ b/grub-core/disk/dmraid_nvidia.c @@ -122,7 +122,7 @@ grub_dmraid_nv_detect (grub_disk_t disk, if (sb.version != NV_VERSION) { grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET, - "unknown version: %d.%d", sb.version); + "unknown version: %d.%d", sb.version >> 8, sb.version & 0xFF); return NULL; } -- 2.27.0