aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/usrp_cal_utils.hpp
diff options
context:
space:
mode:
authorBen Hilburn <ben.hilburn@ettus.com>2014-04-10 13:06:52 -0700
committerBen Hilburn <ben.hilburn@ettus.com>2014-04-10 13:06:52 -0700
commitdd07f5b40c822febde400cec817f7e8eddf860f2 (patch)
tree3120ebb0b6b4e76c5dd33e2db3b5def2de410b2d /host/utils/usrp_cal_utils.hpp
parentd3459ad697b4c38354731eb6e6fc1075b194d5ea (diff)
parent853901782f07b62bf774551c344a65606e545a4f (diff)
downloaduhd-dd07f5b40c822febde400cec817f7e8eddf860f2.tar.gz
uhd-dd07f5b40c822febde400cec817f7e8eddf860f2.tar.bz2
uhd-dd07f5b40c822febde400cec817f7e8eddf860f2.zip
Merge branch 'origin/uhd/issue_294_errcode'
Convert numeric errors to PP strings that are actually useful.
Diffstat (limited to 'host/utils/usrp_cal_utils.hpp')
-rw-r--r--host/utils/usrp_cal_utils.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/utils/usrp_cal_utils.hpp b/host/utils/usrp_cal_utils.hpp
index 5aff5e22f..e8749fba7 100644
--- a/host/utils/usrp_cal_utils.hpp
+++ b/host/utils/usrp_cal_utils.hpp
@@ -257,8 +257,8 @@ static void capture_samples(
//validate the received data
if (md.error_code != uhd::rx_metadata_t::ERROR_CODE_NONE){
throw std::runtime_error(str(boost::format(
- "Unexpected error code 0x%x"
- ) % md.error_code));
+ "Receiver error: %s"
+ ) % md.strerror()));
}
//we can live if all the data didnt come in
if (num_rx_samps > buff.size()/2){