Re: [PATCH 8/8] vbox: Stop reporting RC in error messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 23, 2023 at 10:35:55AM +0100, Michal Privoznik wrote:
As shown in the commit that introduced vboxReportError(), we are
appending the retval of a failed VirtualBox API onto our error
messages. Well, this is no longer needed because
vboxReportError() already appends the VirtualBox error in plain
text.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
src/vbox/vbox_common.c | 301 ++++++++++++++++++-----------------------
1 file changed, 132 insertions(+), 169 deletions(-)

diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c
index cf404ea9d7..0a83cc5a61 100644
--- a/src/vbox/vbox_common.c
+++ b/src/vbox/vbox_common.c
@@ -570,8 +570,8 @@ vboxSetStorageController(virDomainControllerDef *controller,

    if (NS_FAILED(rc)) {
        vboxReportError(VIR_ERR_INTERNAL_ERROR,
-                        _("Failed to add storage controller (name: %s, busType: %d), rc=%08x"),
-                        debugName, vboxBusType, rc);
+                        _("Failed to add storage controller (name: %s, busType: %d)"),
+                        debugName, vboxBusType);
        goto cleanup;
    }

@@ -581,7 +581,7 @@ vboxSetStorageController(virDomainControllerDef *controller,
                                                            vboxModel);
        if (NS_FAILED(rc)) {
            vboxReportError(VIR_ERR_INTERNAL_ERROR,

"%s" should be here and without it the build should fail.  I guess
vboxReportError should be added to msg_gen_function in
build-aux/syntax-check.mk.  There are more occurrences of this in the
rest of the patch.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux