Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lNOxI-00081D-Ce for mharc-grub-devel@gnu.org; Fri, 19 Mar 2021 19:55:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNOxG-00080w-FQ for grub-devel@gnu.org; Fri, 19 Mar 2021 19:54:58 -0400 Received: from b-painless.mh.aa.net.uk ([2001:8b0:0:30::52]:49023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNOxE-0002dZ-B9 for grub-devel@gnu.org; Fri, 19 Mar 2021 19:54:58 -0400 Received: from f.b.1.7.2.1.e.f.f.f.a.c.5.0.a.6.4.1.b.e.2.f.f.b.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:bff2:eb14:6a05:caff:fe12:71bf] helo=riva.pelham.vpn.ucam.org) by painless-b.tch.aa.net.uk with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNOxC-0002BB-78 for grub-devel@gnu.org; Fri, 19 Mar 2021 23:54:54 +0000 Received: from ns1.pelham.vpn.ucam.org ([172.20.153.2] helo=riva.ucam.org) by riva.pelham.vpn.ucam.org with esmtp (Exim 4.92) (envelope-from ) id 1lNOww-000732-Qk for grub-devel@gnu.org; Fri, 19 Mar 2021 23:54:38 +0000 Date: Fri, 19 Mar 2021 23:54:38 +0000 From: Colin Watson To: grub-devel@gnu.org Subject: [PATCH] buffer: Sync up out-of-range error message Message-ID: <20210319235438.GA14754@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: none client-ip=2001:8b0:0:30::52; envelope-from=cjwatson@debian.org; helo=b-painless.mh.aa.net.uk 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, SPF_HELO_NONE=0.001, SPF_NONE=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 Mar 2021 23:54:58 -0000 The messages associated with other similar GRUB_ERR_OUT_OF_RANGE errors were lacking the trailing full stop. Syncing up the strings saves a small amount of precious core image space on i386-pc. DOWN: obj/i386-pc/grub-core/kernel.img (31740 > 31708) - change: -32 DOWN: i386-pc core image (biosdisk ext2 part_msdos) (27453 > 27452) - change: -1 DOWN: i386-pc core image (biosdisk ext2 part_msdos diskfilter mdraid09) (32367 > 32359) - change: -8 Signed-off-by: Colin Watson --- include/grub/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/grub/buffer.h b/include/grub/buffer.h index f4b10cf28..bb5e3cd92 100644 --- a/include/grub/buffer.h +++ b/include/grub/buffer.h @@ -114,7 +114,7 @@ grub_buffer_peek_data_at (grub_buffer_t buf, grub_size_t off) { if (grub_add (buf->pos, off, &off)) { - grub_error (GRUB_ERR_OUT_OF_RANGE, N_("overflow is detected.")); + grub_error (GRUB_ERR_OUT_OF_RANGE, N_("overflow is detected")); return NULL; } -- 2.25.1