Message ID | BANLkTikyyUh=PiBkEmtW1pQjHRf8RYdv0w@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Mon, Jun 20, 2011 at 2:25 PM, Frediano Ziglio <freddy77@gmail.com> wrote: > Signed-off-by: Frediano Ziglio <freddy77@gmail.com> > --- > cmd.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) Thanks for the patch! cmd.c:timestr() has tabs for indentation but your patch uses spaces. I applied your changes manually to the trivial-patches tree: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches For more info on the trivial patches tree, see http://wiki.qemu.org/Contribute/TrivialPatches. Please make sure whitespace remains unmodified in the future so that your patches apply, this is often a mail client issue. Try git-send-email(1), it does the right thing. Stefan
diff --git a/cmd.c b/cmd.c index db2c9c4..ecca167 100644 --- a/cmd.c +++ b/cmd.c @@ -486,7 +486,7 @@ timestr( snprintf(ts, size, "%u:%02u.%02u", (unsigned int) MINUTES(tv->tv_sec), (unsigned int) SECONDS(tv->tv_sec), - (unsigned int) usec * 100); + (unsigned int) (usec * 100)); return; } format |= VERBOSE_FIXED_TIME; /* fallback if hours needed */ @@ -497,9 +497,9 @@ timestr( (unsigned int) HOURS(tv->tv_sec), (unsigned int) MINUTES(tv->tv_sec), (unsigned int) SECONDS(tv->tv_sec), - (unsigned int) usec * 100); + (unsigned int) (usec * 100)); } else { - snprintf(ts, size, "0.%04u sec", (unsigned int) usec * 10000); + snprintf(ts, size, "0.%04u sec", (unsigned int) (usec * 10000)); } }
Signed-off-by: Frediano Ziglio <freddy77@gmail.com> --- cmd.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)