Skip to content

Commit c532510

Browse files
committed
A bit better debugging for JackRequest fails
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 04bd477 commit c532510

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

common/JackRequest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace Jack
4646
int reserr = (exp); \
4747
if (reserr < 0) { \
4848
if (reserr != JACK_REQUEST_ERR_ABORTED) \
49-
jack_error("CheckRes error"); \
49+
jack_error("CheckRes error for " #exp "in %s", __PRETTY_FUNCTION__); \
5050
return reserr; \
5151
} \
5252
}

common/JackRequestDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ int JackRequestDecoder::HandleRequest(detail::JackChannelTransactionInterface* s
347347
}
348348

349349
default:
350-
jack_error("Unknown request %ld", type);
350+
jack_error("Unknown request %d", type_aux);
351351
return -1;
352352
}
353353

0 commit comments

Comments
 (0)