From f87453cad8f3d2a0e92a01035a8843d70fc57148 Mon Sep 17 00:00:00 2001 From: chenall Date: Sun, 29 Mar 2015 08:00:52 +0800 Subject: [PATCH] fix get_cmdline issue (issue #48) --- stage2/char_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stage2/char_io.c b/stage2/char_io.c index 85f3380a..4a97ac30 100644 --- a/stage2/char_io.c +++ b/stage2/char_io.c @@ -933,8 +933,8 @@ static void cl_refresh (int full, int len) if (i == lpos) lpos_fontx = fontx; - if (lpos_fontx == 0) - printf ("\nReport bug! lpos=%d, start=%d, len=%d, llen=%d, plen=%d, section=%d\n", lpos, start, len, llen, plen, section); + if (len && lpos_fontx == 0) + printf_warning ("\nReport bug! lpos=%d, start=%d, len=%d, llen=%d, plen=%d, section=%d\n", lpos, start, len, llen, plen, section); /* Fill up the rest of the line with spaces. */ for (; i < start + len; i++)