Misc next patches
The following changes since commit bbc48d2bcb9711614fbe751c2c5ae13e172fbca8:
Merge remote-tracking branch 'remotes/philmd-gitlab/tags/renesas-20201027' =
into staging (2020-10-28 16:25:31 +0000)
are available in the Git repository at:
https://gitlab.com/berrange/qemu tags/misc-next-pull-request
for you to fetch changes up to dfc00eb7dea43bfb6d4a2ba38c4f6bc9745f3729:
util: include the target address in socket connect failures (2020-10-29 09:=
57:37 +0000)
----------------------------------------------------------------
Misc fixes
* Improve socket cnnection failure error reporting
* Fix LGPL version number
----------------------------------------------------------------
AlexChen (1):
io: Don't use '#' flag of printf format
Chetan Pant (3):
io: Fix Lesser GPL version number
crypt: Fix Lesser GPL version number
authz: Fix Lesser GPL version number
Daniel P. Berrang=C3=A9 (1):
util: include the target address in socket connect failures
authz/base.c | 2 +- authz/list.c | 2 +- authz/listfile.c | 2 +- authz/pamacct.c | 2 +- authz/simple.c | 2 +- include/authz/base.h | 2 +- include/authz/list.h | 2 +- include/authz/listfile.h | 2 +- include/authz/pamacct.h | 2 +- include/authz/simple.h | 2 +- include/io/channel-buffer.h | 2 +- include/io/channel-command.h | 2 +- include/io/channel-file.h | 2 +- include/io/channel-socket.h | 2 +- include/io/channel-tls.h | 2 +- include/io/channel-util.h | 2 +- include/io/channel-watch.h | 2 +- include/io/channel-websock.h | 2 +- include/io/channel.h | 2 +- include/io/dns-resolver.h | 2 +- include/io/task.h | 2 +- io/channel-buffer.c | 2 +- io/channel-command.c | 2 +- io/channel-file.c | 2 +- io/channel-socket.c | 2 +- io/channel-tls.c | 2 +- io/channel-util.c | 2 +- io/channel-watch.c | 2 +- io/channel-websock.c | 4 ++-- io/channel.c | 2 +- io/dns-resolver.c | 2 +- io/task.c | 2 +- tests/qemu-iotests/162.out | 4 ++-- tests/test-authz-list.c | 2 +- tests/test-authz-listfile.c | 2 +- tests/test-authz-pam.c | 2 +- tests/test-authz-simple.c | 2 +- tests/test-crypto-afsplit.c | 2 +- tests/test-crypto-block.c | 2 +- tests/test-crypto-cipher.c | 2 +- tests/test-crypto-hash.c | 2 +- tests/test-crypto-ivgen.c | 2 +- tests/test-crypto-secret.c | 2 +- tests/test-crypto-xts.c | 2 +- tests/test-io-channel-buffer.c | 2 +- tests/test-io-channel-command.c | 2 +- tests/test-io-channel-file.c | 2 +- tests/test-io-channel-socket.c | 2 +- tests/test-io-task.c | 2 +- util/qemu-sockets.c | 32 +++++++++++++++++++------------- 50 files changed, 70 insertions(+), 64 deletions(-)
--=20
2.28.0
[PULL 3/5] authz: Fix Lesser GPL version number
From: Chetan Pant <[email protected]>
There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section.
--- authz/base.c | 2 +- authz/list.c | 2 +- authz/listfile.c | 2 +- authz/pamacct.c | 2 +- authz/simple.c | 2 +- include/authz/base.h | 2 +- include/authz/list.h | 2 +- include/authz/listfile.h | 2 +- include/authz/pamacct.h | 2 +- include/authz/simple.h | 2 +- tests/test-authz-list.c | 2 +- tests/test-authz-listfile.c | 2 +- tests/test-authz-pam.c | 2 +- tests/test-authz-simple.c | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-)
authz/base.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
authz/list.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
authz/listfile.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
authz/pamacct.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
authz/simple.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/authz/base.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/authz/list.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/authz/listfile.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/authz/pamacct.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/authz/simple.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-authz-list.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-authz-listfile.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-authz-pam.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-authz-simple.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
Signature · 1 line
2.28.0
[PULL 1/5] io: Fix Lesser GPL version number
In reply to Daniel P. BerrangéFrom: Chetan Pant <[email protected]>
There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section.
--- include/io/channel-buffer.h | 2 +- include/io/channel-command.h | 2 +- include/io/channel-file.h | 2 +- include/io/channel-socket.h | 2 +- include/io/channel-tls.h | 2 +- include/io/channel-util.h | 2 +- include/io/channel-watch.h | 2 +- include/io/channel-websock.h | 2 +- include/io/channel.h | 2 +- include/io/dns-resolver.h | 2 +- include/io/task.h | 2 +- io/channel-buffer.c | 2 +- io/channel-command.c | 2 +- io/channel-file.c | 2 +- io/channel-socket.c | 2 +- io/channel-tls.c | 2 +- io/channel-util.c | 2 +- io/channel-watch.c | 2 +- io/channel-websock.c | 2 +- io/channel.c | 2 +- io/dns-resolver.c | 2 +- io/task.c | 2 +- tests/test-io-channel-buffer.c | 2 +- tests/test-io-channel-command.c | 2 +- tests/test-io-channel-file.c | 2 +- tests/test-io-channel-socket.c | 2 +- tests/test-io-task.c | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-)
include/io/channel-buffer.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-command.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-file.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-socket.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-tls.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-util.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-watch.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel-websock.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/channel.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/dns-resolver.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/io/task.h +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-buffer.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-command.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-file.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-socket.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-tls.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-util.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-watch.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel-websock.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/channel.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/dns-resolver.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
io/task.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-io-channel-buffer.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-io-channel-command.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-io-channel-file.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-io-channel-socket.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-io-task.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
Signature · 1 line
2.28.0
[PULL 2/5] crypt: Fix Lesser GPL version number
In reply to Daniel P. BerrangéFrom: Chetan Pant <[email protected]>
There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section.
--- tests/test-crypto-afsplit.c | 2 +- tests/test-crypto-block.c | 2 +- tests/test-crypto-cipher.c | 2 +- tests/test-crypto-hash.c | 2 +- tests/test-crypto-ivgen.c | 2 +- tests/test-crypto-secret.c | 2 +- tests/test-crypto-xts.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
tests/test-crypto-afsplit.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-block.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-cipher.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-hash.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-ivgen.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-secret.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
tests/test-crypto-xts.c +1 -1
@@ -6,7 +6,7 @@* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either -* version 2 of the License, or (at your option) any later version. +* version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
Signature · 1 line
2.28.0
[PULL 4/5] io: Don't use '#' flag of printf format
In reply to Daniel P. BerrangéFrom: AlexChen <[email protected]>
--- io/channel-websock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
io/channel-websock.c +1 -1
@@ -746,7 +746,7 @@ static int qio_channel_websock_decode_header(QIOChannelWebsock *ioc, opcode != QIO_CHANNEL_WEBSOCK_OPCODE_CLOSE && opcode != QIO_CHANNEL_WEBSOCK_OPCODE_PING && opcode != QIO_CHANNEL_WEBSOCK_OPCODE_PONG) { -error_setg (errp,"unsupported opcode: %#04x; only binary, close, " +error_setg (errp,"unsupported opcode: 0x%04x; only binary, close, " "ping, and pong websocket frames are supported" , opcode); qio_channel_websock_write_close( ioc, QIO_CHANNEL_WEBSOCK_STATUS_INVALID_DATA ,
Signature · 1 line
2.28.0
[PULL 5/5] util: include the target address in socket connect failures
In reply to Daniel P. BerrangéReporting "Failed to connect socket" is essentially useless for a user attempting to diagnose failure. It needs to include the target address details. Similarly when failing to create a socket we should include the socket family info, so the user understands what particular feature was missing in their kernel build (IPv6, VSock in particular).
--- tests/qemu-iotests/162.out | 4 ++-- util/qemu-sockets.c | 32 +++++++++++++++++++------------- 2 files changed, 21 insertions(+), 15 deletions(-)
tests/qemu-iotests/162.out +2 -2
@@ -6,8 +6,8 @@ image: nbd://localhost:PORT image: nbd+unix://?socket=42 === SSH === -qemu-img: Could not open 'json:{"driver": "ssh", "host": "localhost", "port": "0", "path": "/foo"}': Failed to connect socket: Connection refused -qemu-img: Could not open 'driver=ssh,host=localhost,port=0,path=/foo': Failed to connect socket: Connection refused +qemu-img: Could not open 'json:{"driver": "ssh", "host": "localhost", "port": "0", "path": "/foo"}': Failed to connect to 'localhost:0': Connection refused +qemu-img: Could not open 'driver=ssh,host=localhost,port=0,path=/foo': Failed to connect to 'localhost:0': Connection refused qemu-img: Could not open 'json:{"driver": "ssh", "host": "localhost", "port": 0.42, "path": "/foo"}': Parameter 'port' expects a number qemu-img: Could not open 'driver=ssh,host=localhost,port=0.42,path=/foo': Parameter 'port' expects a number
util/qemu-sockets.c +19 -13
@@ -354,15 +354,15 @@ listen_ok: ((rc) == -EINPROGRESS)#endif -static int inet_connect_addr (struct addrinfo *addr,Error **errp); - -static int inet_connect_addr (struct addrinfo *addr,Error **errp) +static int inet_connect_addr (const InetSocketAddress *saddr, +struct addrinfo *addr,Error **errp) {int sock, rc; sock =qemu_socket (addr->ai_family, addr->ai_socktype, addr->ai_protocol);if (sock <0 ) { -error_setg_errno (errp, errno,"Failed to create socket" ); +error_setg_errno (errp, errno,"Failed to create socket family %d" , + addr->ai_family);return -1 ; }socket_set_fast_reuse (sock);
@@ -376,7 +376,8 @@ static int inet_connect_addr(struct addrinfo *addr, Error **errp) }while (rc == -EINTR );if (rc <0 ) { -error_setg_errno (errp, errno,"Failed to connect socket" ); +error_setg_errno (errp, errno,"Failed to connect to '%s:%s'" , + saddr->host, saddr->port);closesocket (sock);return -1 ; }
@@ -455,7 +456,7 @@ int inet_connect_saddr(InetSocketAddress *saddr, Error **errp)for (e = res; e !=NULL ; e = e->ai_next) {error_free (local_err); local_err =NULL ; - sock =inet_connect_addr (e, &local_err); + sock =inet_connect_addr (saddr, e, &local_err);if (sock >=0 ) {break ; }
@@ -549,7 +550,8 @@ static int inet_dgram_saddr(InetSocketAddress *sraddr,/* create socket */ sock =qemu_socket (peer->ai_family, peer->ai_socktype, peer->ai_protocol);if (sock <0 ) { -error_setg_errno (errp, errno,"Failed to create socket" ); +error_setg_errno (errp, errno,"Failed to create socket family %d" , + peer->ai_family); goto err; }socket_set_fast_reuse (sock);
@@ -562,7 +564,8 @@ static int inet_dgram_saddr(InetSocketAddress *sraddr,/* connect to peer */ if (connect (sock,peer->ai_addr,peer->ai_addrlen) <0 ) { -error_setg_errno (errp, errno,"Failed to connect socket" ); +error_setg_errno (errp, errno,"Failed to connect to '%s:%s'" , + addr, port); goto err; }
@@ -735,13 +738,15 @@ static bool vsock_parse_vaddr_to_sockaddr(const VsockSocketAddress *vaddr,return true; } -static int vsock_connect_addr (const struct sockaddr_vm *svm,Error **errp) +static int vsock_connect_addr (const VsockSocketAddress *vaddr, +const struct sockaddr_vm *svm,Error **errp) {int sock, rc; sock =qemu_socket (AF_VSOCK ,SOCK_STREAM ,0 );if (sock <0 ) { -error_setg_errno (errp, errno,"Failed to create socket" ); +error_setg_errno (errp, errno,"Failed to create socket family %d" , +AF_VSOCK );return -1 ; }
@@ -754,7 +759,8 @@ static int vsock_connect_addr(const struct sockaddr_vm *svm, Error **errp) }while (rc == -EINTR );if (rc <0 ) { -error_setg_errno (errp, errno,"Failed to connect socket" ); +error_setg_errno (errp, errno,"Failed to connect to '%s:%s'" , + vaddr->cid, vaddr->port);closesocket (sock);return -1 ; }
@@ -770,7 +776,7 @@ static int vsock_connect_saddr(VsockSocketAddress *vaddr, Error **errp)return -1 ; } -return vsock_connect_addr (&svm, errp); +return vsock_connect_addr (vaddr, &svm, errp); } static int vsock_listen_saddr(VsockSocketAddress *vaddr,
@@ -994,7 +1000,7 @@ static int unix_connect_saddr(UnixSocketAddress *saddr, Error **errp) }while (rc == -EINTR );if (rc <0 ) { -error_setg_errno (errp, -rc,"Failed to connect socket %s" , +error_setg_errno (errp, -rc,"Failed to connect to '%s'" , saddr->path); goto err; }
Signature · 1 line
2.28.0
Peter Maydell
AppliedQuoted 15 lines · Daniel P. Berrangé
The following changes since commit
bbc48d2bcb9711614fbe751c2c5ae13e172fbca8:Merge remote-tracking branch 'remotes/philmd-gitlab/tags/renesas-20201027' =
into staging (2020-10-28 16:25:31 +0000)are available in the Git repository at:
https://gitlab.com/berrange/qemu tags/misc-next-pull-request
for you to fetch changes up to
dfc00eb7dea43bfb6d4a2ba38c4f6bc9745f3729:util: include the target address in socket connect failures (2020-10-29 09:=
57:37 +0000)
Quoted 7 lines
----------------------------------------------------------------
Misc fixes* Improve socket cnnection failure error reporting
* Fix LGPL version number----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.2
for any user-visible changes.
-- PMM