* [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report
@ 2015-06-29 20:56 John Snow
2015-06-30 1:09 ` Gonglei
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: John Snow @ 2015-06-29 20:56 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, John Snow
Minor cleanup.
Signed-off-by: John Snow <jsnow@redhat.com>
---
hw/ide/ahci.c | 2 +-
hw/vfio/platform.c | 2 +-
net/tap-linux.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index b4b65c1..8478d25 100644
--- a/hw/ide/ahci.c
+++ b/hw/ide/ahci.c
@@ -885,7 +885,7 @@ static int ahci_populate_sglist(AHCIDevice *ad, QEMUSGList *sglist,
prdt_tbl_entry_size(&tbl[i]));
if (sglist->size > INT32_MAX) {
error_report("AHCI Physical Region Descriptor Table describes "
- "more than 2 GiB.\n");
+ "more than 2 GiB.");
qemu_sglist_destroy(sglist);
r = -1;
goto out;
diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c
index 5c678b9..932d631 100644
--- a/hw/vfio/platform.c
+++ b/hw/vfio/platform.c
@@ -225,7 +225,7 @@ static void vfio_intp_interrupt(VFIOINTp *intp)
ret = event_notifier_test_and_clear(&intp->interrupt);
if (!ret) {
- error_report("Error when clearing fd=%d (ret = %d)\n",
+ error_report("Error when clearing fd=%d (ret = %d)",
event_notifier_get_fd(&intp->interrupt), ret);
}
diff --git a/net/tap-linux.c b/net/tap-linux.c
index 394f2a6..5bd9d21 100644
--- a/net/tap-linux.c
+++ b/net/tap-linux.c
@@ -211,7 +211,7 @@ int tap_fd_set_vnet_le(int fd, int is_le)
return -errno;
}
- error_report("TUNSETVNETLE ioctl() failed: %s.\n", strerror(errno));
+ error_report("TUNSETVNETLE ioctl() failed: %s.", strerror(errno));
abort();
}
@@ -228,7 +228,7 @@ int tap_fd_set_vnet_be(int fd, int is_be)
return -errno;
}
- error_report("TUNSETVNETBE ioctl() failed: %s.\n", strerror(errno));
+ error_report("TUNSETVNETBE ioctl() failed: %s.", strerror(errno));
abort();
}
--
2.1.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report
2015-06-29 20:56 [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report John Snow
@ 2015-06-30 1:09 ` Gonglei
2015-07-09 10:26 ` Stefan Hajnoczi
2015-09-06 10:56 ` Michael Tokarev
2 siblings, 0 replies; 6+ messages in thread
From: Gonglei @ 2015-06-30 1:09 UTC (permalink / raw)
To: John Snow, qemu-devel; +Cc: qemu-trivial
On 2015/6/30 4:56, John Snow wrote:
> Minor cleanup.
>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
> hw/ide/ahci.c | 2 +-
> hw/vfio/platform.c | 2 +-
> net/tap-linux.c | 4 ++--
> 3 files changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report
2015-06-29 20:56 [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report John Snow
2015-06-30 1:09 ` Gonglei
@ 2015-07-09 10:26 ` Stefan Hajnoczi
2015-08-25 0:19 ` John Snow
2015-09-06 10:56 ` Michael Tokarev
2 siblings, 1 reply; 6+ messages in thread
From: Stefan Hajnoczi @ 2015-07-09 10:26 UTC (permalink / raw)
To: John Snow; +Cc: qemu-trivial, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 610 bytes --]
On Mon, Jun 29, 2015 at 04:56:26PM -0400, John Snow wrote:
> Minor cleanup.
>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
> hw/ide/ahci.c | 2 +-
> hw/vfio/platform.c | 2 +-
> net/tap-linux.c | 4 ++--
> 3 files changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Laszlo Ersek suggested a compile-time check (e.g. BUILD_BUG_ON()). Have
you looked into this?
Perhaps something along the lines of:
BUILD_BUG_ON(__builtin_constant_p(fmt) &&
__builtin_strlen(fmt) > 0 &&
fmt[__builtin_strlen(fmt) - 1] == '\n')
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report
2015-07-09 10:26 ` Stefan Hajnoczi
@ 2015-08-25 0:19 ` John Snow
2015-09-03 14:31 ` Stefan Hajnoczi
0 siblings, 1 reply; 6+ messages in thread
From: John Snow @ 2015-08-25 0:19 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: qemu-trivial, qemu-devel
On 07/09/2015 06:26 AM, Stefan Hajnoczi wrote:
> On Mon, Jun 29, 2015 at 04:56:26PM -0400, John Snow wrote:
>> Minor cleanup.
>>
>> Signed-off-by: John Snow <jsnow@redhat.com> --- hw/ide/ahci.c
>> | 2 +- hw/vfio/platform.c | 2 +- net/tap-linux.c | 4 ++-- 3
>> files changed, 4 insertions(+), 4 deletions(-)
>
> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
>
> Laszlo Ersek suggested a compile-time check (e.g. BUILD_BUG_ON()).
> Have you looked into this?
>
> Perhaps something along the lines of:
>
> BUILD_BUG_ON(__builtin_constant_p(fmt) && __builtin_strlen(fmt) > 0
> && fmt[__builtin_strlen(fmt) - 1] == '\n')
>
ping for 2.5; I don't think this ever made it in.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report
2015-08-25 0:19 ` John Snow
@ 2015-09-03 14:31 ` Stefan Hajnoczi
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Hajnoczi @ 2015-09-03 14:31 UTC (permalink / raw)
To: John Snow; +Cc: qemu-trivial, Michael Tokarev, qemu-devel
On Mon, Aug 24, 2015 at 08:19:34PM -0400, John Snow wrote:
>
>
> On 07/09/2015 06:26 AM, Stefan Hajnoczi wrote:
> > On Mon, Jun 29, 2015 at 04:56:26PM -0400, John Snow wrote:
> >> Minor cleanup.
> >>
> >> Signed-off-by: John Snow <jsnow@redhat.com> --- hw/ide/ahci.c
> >> | 2 +- hw/vfio/platform.c | 2 +- net/tap-linux.c | 4 ++-- 3
> >> files changed, 4 insertions(+), 4 deletions(-)
> >
> > Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
> >
> > Laszlo Ersek suggested a compile-time check (e.g. BUILD_BUG_ON()).
> > Have you looked into this?
> >
> > Perhaps something along the lines of:
> >
> > BUILD_BUG_ON(__builtin_constant_p(fmt) && __builtin_strlen(fmt) > 0
> > && fmt[__builtin_strlen(fmt) - 1] == '\n')
> >
>
> ping for 2.5; I don't think this ever made it in.
CCing Michael explicitly since this is for the trivial tree
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report
2015-06-29 20:56 [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report John Snow
2015-06-30 1:09 ` Gonglei
2015-07-09 10:26 ` Stefan Hajnoczi
@ 2015-09-06 10:56 ` Michael Tokarev
2 siblings, 0 replies; 6+ messages in thread
From: Michael Tokarev @ 2015-09-06 10:56 UTC (permalink / raw)
To: John Snow, qemu-devel; +Cc: qemu-trivial
29.06.2015 23:56, John Snow wrote:
> Minor cleanup.
Finally applied to -trivial. Thank you!
/mjt
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-09-06 10:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-29 20:56 [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report John Snow
2015-06-30 1:09 ` Gonglei
2015-07-09 10:26 ` Stefan Hajnoczi
2015-08-25 0:19 ` John Snow
2015-09-03 14:31 ` Stefan Hajnoczi
2015-09-06 10:56 ` Michael Tokarev
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).