Warning: Can't synchronize with repository "(default)" (No changeset 96d22ec3fa3ef6de3ea8dc0d7d398adc9aa071cf in the repository). Look in the Trac log for more information.

Ticket #540 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

mdbus2 should print method's meaningful reply to stdout

Reported by: PaulFertser Owned by: mickey
Priority: minor Milestone:
Component: cornucopia/mdbus2 Version:
Keywords: Cc:

Description

diff --git a/tools/mdbus2/src/main.vala b/tools/mdbus2/src/main.vala
index d0b70f0..ed2e90e 100644
--- a/tools/mdbus2/src/main.vala
+++ b/tools/mdbus2/src/main.vala
@@ -723,7 +723,7 @@ class Commands : Object
 #if DEBUG
                         stderr.printf( @"Method call OK. Result:\n$(formatMessage(reply))\n" );
 #else
-                        stderr.printf( @"$(formatMessage(reply))\n" );
+                        stdout.printf( @"$(formatMessage(reply))\n" );
 #endif
                     }
                     return true;

Change History

comment:1 Changed 3 years ago by mickey

  • Status changed from new to closed
  • Resolution set to fixed

Applied, thanks a lot!

Note: See TracTickets for help on using tickets.