Skip to content

Commit fb5daad

Browse files
author
cryo
committed
Add timeout value to error message
1 parent 0e675ad commit fb5daad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rogue/interfaces/memory/Transaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ std::string rim::Transaction::wait() {
233233
gettimeofday(&currTime, NULL);
234234
if (endTime_.tv_sec != 0 && endTime_.tv_usec != 0 && timercmp(&currTime, &(endTime_), >)) {
235235
done_ = true;
236-
error_ = "Timeout waiting for register transaction " + std::to_string(id_) + " message response.";
236+
error_ = "Timeout (" + std::to_string(timeout_.tv_sec + timeout_.tv_usec*1e-9) + "s) waiting for register transaction " + std::to_string(id_) + " message response.";
237237

238238
log_->debug("Transaction timeout. type=%" PRIu32 " id=%" PRIu32 ", address=0x%" PRIx64 ", size=%" PRIu32,
239239
type_,

0 commit comments

Comments
 (0)