+2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
+ of SI suffixes.
+
2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
Support --base-clock for serial command to handle weird cards with
{"word", 'w', 0, N_("Set the serial port word length."), 0, ARG_TYPE_INT},
{"parity", 'r', 0, N_("Set the serial port parity."), 0, ARG_TYPE_STRING},
{"stop", 't', 0, N_("Set the serial port stop bits."), 0, ARG_TYPE_INT},
- {"base-clock", 'b', 0, N_("Set the base clock."), 0, ARG_TYPE_INT},
+ {"base-clock", 'b', 0, N_("Set the base clock."), 0, ARG_TYPE_STRING},
{0, 0, 0, 0, 0, 0}
};
{
char *ptr;
config.base_clock = grub_strtoull (state[OPTION_BASE_CLOCK].arg, &ptr, 0);
+ if (grub_errno)
+ return grub_errno;
if (ptr && *ptr == 'M')
config.base_clock *= 1000000;
if (ptr && (*ptr == 'k' || *ptr == 'K'))