mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
util: Set two digit exponents for scientific notation.
By default, three digit exponents are printed on Windows. Many unit tests in Open vSwitch expect two digit exponents. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -460,6 +460,7 @@ set_program_name__(const char *argv0, const char *version, const char *date,
|
||||
size_t max_len = strlen(argv0) + 1;
|
||||
|
||||
SetErrorMode(GetErrorMode() | SEM_NOGPFAULTERRORBOX);
|
||||
_set_output_format(_TWO_DIGIT_EXPONENT);
|
||||
|
||||
if (program_name) {
|
||||
free(program_name);
|
||||
|
Reference in New Issue
Block a user