summaryrefslogtreecommitdiff
path: root/lib/wx/c_src/wxe_return.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wx/c_src/wxe_return.cpp')
-rw-r--r--lib/wx/c_src/wxe_return.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/wx/c_src/wxe_return.cpp b/lib/wx/c_src/wxe_return.cpp
index 7d2e072561..8728dafcf9 100644
--- a/lib/wx/c_src/wxe_return.cpp
+++ b/lib/wx/c_src/wxe_return.cpp
@@ -1,7 +1,7 @@
/*
* %CopyrightBegin%
*
- * Copyright Ericsson AB 2008-2022. All Rights Reserved.
+ * Copyright Ericsson AB 2008-2023. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,8 +43,11 @@ wxeReturn::~wxeReturn () {
int wxeReturn::send(ERL_NIF_TERM msg) {
int res;
if(wxe_debug) {
- if(isResult)
- enif_fprintf(stderr, "return to %T: %T\r\n", caller, msg);
+ if(isResult) {
+ enif_fprintf(stderr, "return to %T: ", caller);
+ wx_print_term(env, msg);
+ enif_fprintf(stderr, "\r\n");
+ }
}
if(isResult) {
res = enif_send(NULL, &caller, env,