mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 07:02:03 -06:00
cmd: fix operator precedence
Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
77bec68668
commit
bcd2491a48
1 changed files with 3 additions and 3 deletions
6
cmd.c
6
cmd.c
|
@ -486,7 +486,7 @@ timestr(
|
||||||
snprintf(ts, size, "%u:%02u.%02u",
|
snprintf(ts, size, "%u:%02u.%02u",
|
||||||
(unsigned int) MINUTES(tv->tv_sec),
|
(unsigned int) MINUTES(tv->tv_sec),
|
||||||
(unsigned int) SECONDS(tv->tv_sec),
|
(unsigned int) SECONDS(tv->tv_sec),
|
||||||
(unsigned int) usec * 100);
|
(unsigned int) (usec * 100));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
format |= VERBOSE_FIXED_TIME; /* fallback if hours needed */
|
format |= VERBOSE_FIXED_TIME; /* fallback if hours needed */
|
||||||
|
@ -497,9 +497,9 @@ timestr(
|
||||||
(unsigned int) HOURS(tv->tv_sec),
|
(unsigned int) HOURS(tv->tv_sec),
|
||||||
(unsigned int) MINUTES(tv->tv_sec),
|
(unsigned int) MINUTES(tv->tv_sec),
|
||||||
(unsigned int) SECONDS(tv->tv_sec),
|
(unsigned int) SECONDS(tv->tv_sec),
|
||||||
(unsigned int) usec * 100);
|
(unsigned int) (usec * 100));
|
||||||
} else {
|
} else {
|
||||||
snprintf(ts, size, "0.%04u sec", (unsigned int) usec * 10000);
|
snprintf(ts, size, "0.%04u sec", (unsigned int) (usec * 10000));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue