On 11.09.18 13:36, [ext] Andreas J. Reichel wrote:
From: Andreas Reichel <[email protected]>

During system-update, a lot of 'errors' are printed out, which
are not 'errors' in the sense of failing but are normal during
partition scanning. Reword these to 'Cannot ... skipping...'

Signed-off-by: Andreas Reichel <[email protected]>
---
  tools/ebgpart.c | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tools/ebgpart.c b/tools/ebgpart.c
index eabf5d0..471c2df 100644
--- a/tools/ebgpart.c
+++ b/tools/ebgpart.c
@@ -270,16 +270,17 @@ static bool check_partition_table(PedDevice *dev)
        VERBOSE(stdout, "Checking %s\n", dev->path);
        fd = open(dev->path, O_RDONLY);
        if (fd < 0) {
-               VERBOSE(stderr, "Error opening block device.\n");
+               VERBOSE(stderr, "Cannot open block device, skipping...\n");
                return false;
        }
        if (read(fd, &mbr, sizeof(mbr)) != sizeof(mbr)) {
-               VERBOSE(stderr, "Error reading mbr on %s.\n", dev->path);
+               VERBOSE(stderr, "Cannot read MBR on %s, skipping...\n",
+                       dev->path);
                close(fd);
                return false;
        };
        if (mbr.mbrsignature != 0xaa55) {
-               VERBOSE(stderr, "Error, MBR has wrong signature.\n");
+               VERBOSE(stderr, "No valid MBR signature found, skipping...\n");
                close(fd);
                return false;
        }


Thanks, applied.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

--
You received this message because you are subscribed to the Google Groups "EFI Boot 
Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/e9ac4de5-da9d-cb52-740e-c8ce315e04f1%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to