diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-02-27 15:04:29 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-02-27 15:04:29 -0800 |
commit | e2e0aab1855317d77294fca42bf435a41931a8fb (patch) | |
tree | cfc6168675aa71f2e3d6c118f3b36eca70b7e420 /host | |
parent | 16ccfe215b60dfaeb9210fc44f6264338fc4ee11 (diff) | |
download | uhd-e2e0aab1855317d77294fca42bf435a41931a8fb.tar.gz uhd-e2e0aab1855317d77294fca42bf435a41931a8fb.tar.bz2 uhd-e2e0aab1855317d77294fca42bf435a41931a8fb.zip |
examples: Added some more error strings to test_messages
Diffstat (limited to 'host')
-rw-r--r-- | host/examples/test_messages.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/examples/test_messages.cpp b/host/examples/test_messages.cpp index 4135bca56..43b035d19 100644 --- a/host/examples/test_messages.cpp +++ b/host/examples/test_messages.cpp @@ -74,8 +74,8 @@ bool test_late_command_message(uhd::usrp::multi_usrp::sptr usrp, uhd::rx_streame default: std::cout << boost::format( "failed:\n" - " Got unexpected error code 0x%x, nsamps %u.\n" - ) % md.error_code % nsamps << std::endl; + " Got unexpected error code 0x%x (%s), nsamps %u.\n" + ) % md.error_code % md.strerror() % nsamps << std::endl; return false; } } @@ -122,8 +122,8 @@ bool test_broken_chain_message(UHD_UNUSED(uhd::usrp::multi_usrp::sptr usrp), uhd default: std::cout << boost::format( "failed:\n" - " Got unexpected error code 0x%x.\n" - ) % md.error_code << std::endl; + " Got unexpected error code 0x%x (%s).\n" + ) % md.error_code % md.strerror() << std::endl; return false; } } |