summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-12-16 16:14:48 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2015-03-11 12:32:48 +0100
commit84c3561c58dd992b339afe5bb4c41971a2ebc486 (patch)
tree5570772c3787eeea66d89008279984450562e979
parentf4cf2e5b2f19d6dadb8c046dc545d222280ffafb (diff)
console: fix error-code inversion
The error-code propagated via sysview is always negative. Avoid multiplying by -1 before returning it. Otherwise, we will return >0 instead of <0, which will not be detected as error by sysview-core.
-rw-r--r--src/console/consoled-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console/consoled-manager.c b/src/console/consoled-manager.c
index f82f211d42..b288239cae 100644
--- a/src/console/consoled-manager.c
+++ b/src/console/consoled-manager.c
@@ -225,7 +225,7 @@ static int manager_sysview_session_control(Manager *m, sysview_event *event) {
sysview_session_get_name(session));
session_free(s);
sysview_session_set_userdata(session, NULL);
- return -error;
+ return error;
}
return 0;