This just pollutes serial console.
grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);
}
- grub_setcolorstate (GRUB_TERM_COLOR_HIGHLIGHT);
- for (j = 0; j < utcount; j++)
- grub_printf ("<%x>", (unsigned int) utbuf[j]);
- grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);
+ if (utcount)
+ {
+ grub_setcolorstate (GRUB_TERM_COLOR_HIGHLIGHT);
+ for (j = 0; j < utcount; j++)
+ grub_printf ("<%x>", (unsigned int) utbuf[j]);
+ grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);
+ }
grub_xputs ("\n");
grub_refresh ();