* [Qemu-devel] [PATCH 1/1] fix operator precedence
@ 2011-06-20 13:25 Frediano Ziglio
2011-06-20 18:10 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Frediano Ziglio @ 2011-06-20 13:25 UTC (permalink / raw)
To: qemu-devel
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
---
cmd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
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));
}
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH 1/1] fix operator precedence
2011-06-20 13:25 [Qemu-devel] [PATCH 1/1] fix operator precedence Frediano Ziglio
@ 2011-06-20 18:10 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2011-06-20 18:10 UTC (permalink / raw)
To: Frediano Ziglio; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-20 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20 13:25 [Qemu-devel] [PATCH 1/1] fix operator precedence Frediano Ziglio
2011-06-20 18:10 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).