grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] buffer: Sync up out-of-range error message


From: Colin Watson
Subject: [PATCH] buffer: Sync up out-of-range error message
Date: Fri, 19 Mar 2021 23:54:38 +0000
User-agent: Mutt/1.10.1 (2018-07-13)

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 <cjwatson@debian.org>
---
 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]