* [Qemu-devel] [Bug 1798659] [NEW] A typo in trace/simple.c
@ 2018-10-18 19:17 Oren Milman
2018-10-19 6:12 ` [Qemu-devel] [Bug 1798659] " Thomas Huth
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Oren Milman @ 2018-10-18 19:17 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
In the master branch in trace/simple.c in writeout_thread (https://github.com/qemu/qemu/blob/master/trace/simple.c#L174) we currently have:
dropped.rec.length = sizeof(TraceRecord) + sizeof(uint64_t),
dropped.rec.pid = trace_pid;
It seems to me like a typo that the first line ends with a comma.
Currently this causes no harm, but I think this should be fixed.
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1798659
Title:
A typo in trace/simple.c
Status in QEMU:
New
Bug description:
In the master branch in trace/simple.c in writeout_thread (https://github.com/qemu/qemu/blob/master/trace/simple.c#L174) we currently have:
dropped.rec.length = sizeof(TraceRecord) + sizeof(uint64_t),
dropped.rec.pid = trace_pid;
It seems to me like a typo that the first line ends with a comma.
Currently this causes no harm, but I think this should be fixed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1798659/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [Bug 1798659] Re: A typo in trace/simple.c
2018-10-18 19:17 [Qemu-devel] [Bug 1798659] [NEW] A typo in trace/simple.c Oren Milman
@ 2018-10-19 6:12 ` Thomas Huth
2019-01-18 17:25 ` [Qemu-devel] [Bug 1798659] Re: Replace comma with semicolon " Peter Maydell
2019-04-24 6:11 ` Thomas Huth
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Huth @ 2018-10-19 6:12 UTC (permalink / raw)
To: qemu-devel
It's perfect valid C to terminate a statement with "," instead of ";" -
it just has a different meaning. Consider this:
#include <stdio.h>
int main()
{
if (0)
printf("Hello!\n"),
printf("Good bye!\n");
return 0;
}
At a first glance, you'd expect this program to print "Good bye!" - but
it does not. Actually, the "," is used here to put the two printf
statements into the same block, so this program is the same as:
if (0) {
printf("Hello!\n");
printf("Good bye!\n");
}
Thus, there is no real bug in simple.c here, but of course it would be
better style to clean this up and use ";" instead.
By the way, two lines earlier there is another line ending in ",":
dropped.rec.event = DROPPED_EVENT_ID,
** Summary changed:
- A typo in trace/simple.c
+ Replace comma with semicolon in trace/simple.c
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1798659
Title:
Replace comma with semicolon in trace/simple.c
Status in QEMU:
New
Bug description:
In the master branch in trace/simple.c in writeout_thread (https://github.com/qemu/qemu/blob/master/trace/simple.c#L174) we currently have:
dropped.rec.length = sizeof(TraceRecord) + sizeof(uint64_t),
dropped.rec.pid = trace_pid;
It seems to me like a typo that the first line ends with a comma.
Currently this causes no harm, but I think this should be fixed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1798659/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [Bug 1798659] Re: Replace comma with semicolon in trace/simple.c
2018-10-18 19:17 [Qemu-devel] [Bug 1798659] [NEW] A typo in trace/simple.c Oren Milman
2018-10-19 6:12 ` [Qemu-devel] [Bug 1798659] " Thomas Huth
@ 2019-01-18 17:25 ` Peter Maydell
2019-04-24 6:11 ` Thomas Huth
2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2019-01-18 17:25 UTC (permalink / raw)
To: qemu-devel
Fixed in commit 7ff5920717d413d8b7c3ba13d9, which will be in the
upcoming 4.0 release.
** Changed in: qemu
Status: New => Fix Committed
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1798659
Title:
Replace comma with semicolon in trace/simple.c
Status in QEMU:
Fix Committed
Bug description:
In the master branch in trace/simple.c in writeout_thread (https://github.com/qemu/qemu/blob/master/trace/simple.c#L174) we currently have:
dropped.rec.length = sizeof(TraceRecord) + sizeof(uint64_t),
dropped.rec.pid = trace_pid;
It seems to me like a typo that the first line ends with a comma.
Currently this causes no harm, but I think this should be fixed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1798659/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [Bug 1798659] Re: Replace comma with semicolon in trace/simple.c
2018-10-18 19:17 [Qemu-devel] [Bug 1798659] [NEW] A typo in trace/simple.c Oren Milman
2018-10-19 6:12 ` [Qemu-devel] [Bug 1798659] " Thomas Huth
2019-01-18 17:25 ` [Qemu-devel] [Bug 1798659] Re: Replace comma with semicolon " Peter Maydell
@ 2019-04-24 6:11 ` Thomas Huth
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Huth @ 2019-04-24 6:11 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1798659
Title:
Replace comma with semicolon in trace/simple.c
Status in QEMU:
Fix Released
Bug description:
In the master branch in trace/simple.c in writeout_thread (https://github.com/qemu/qemu/blob/master/trace/simple.c#L174) we currently have:
dropped.rec.length = sizeof(TraceRecord) + sizeof(uint64_t),
dropped.rec.pid = trace_pid;
It seems to me like a typo that the first line ends with a comma.
Currently this causes no harm, but I think this should be fixed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1798659/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-04-24 6:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-18 19:17 [Qemu-devel] [Bug 1798659] [NEW] A typo in trace/simple.c Oren Milman
2018-10-19 6:12 ` [Qemu-devel] [Bug 1798659] " Thomas Huth
2019-01-18 17:25 ` [Qemu-devel] [Bug 1798659] Re: Replace comma with semicolon " Peter Maydell
2019-04-24 6:11 ` Thomas Huth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.