On Thu, Mar 08, 2012 at 07:29:25PM +0200, Maxim Kammerer wrote:
> Hi,
> 
> In kexec/arch/i386/x86-linux-setup.c:setup_linux_vesafb():
> 
>     fprintf(stderr, "%s: %dx%dx%d @ %lx +%x\n", __FUNCTION__,
>         var.xres, var.yres, var.bits_per_pixel,
>         fix.smem_start, fix.smem_len);
> 
> This message is pretty annoying (especially if kexec is loaded several
> times with different parameters during startup/shutdown). Looking in
> that source file, that's the only fprintf which is not an error. Is it
> really necessary?
> 
> I opened a Gentoo bug report
> (https://bugs.gentoo.org/show_bug.cgi?id=407445), and the assignee
> suggested reporting upstream.

Agreed, I have pushed the following patch into
the kexec-tools git tree and it should be included in
the next release.


>From f1facd4b11aa141ffd9bbacb2631ad18dc33669c Mon Sep 17 00:00:00 2001
From: Simon Horman <[email protected]>
Date: Mon, 12 Mar 2012 15:01:35 +0900
Subject: [PATCH] i386: Don't print debug message when VESA framebuffer is
 loaded

This messages seems unnecessarily verbose.

Reported-by: Maxim Kammerer <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
---
 kexec/arch/i386/x86-linux-setup.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/kexec/arch/i386/x86-linux-setup.c 
b/kexec/arch/i386/x86-linux-setup.c
index 0528cea..08d64ca 100644
--- a/kexec/arch/i386/x86-linux-setup.c
+++ b/kexec/arch/i386/x86-linux-setup.c
@@ -151,9 +151,6 @@ int setup_linux_vesafb(struct x86_linux_param_header 
*real_mode)
                real_mode->rsvd_pos   = var.transp.offset;
                real_mode->rsvd_size  = var.transp.length;
        }
-       fprintf(stderr, "%s: %dx%dx%d @ %lx +%x\n", __FUNCTION__,
-               var.xres, var.yres, var.bits_per_pixel,
-               fix.smem_start, fix.smem_len);
        return 0;
 
  out:
-- 
1.7.6.3


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to