diff options
| author | Nicholas Corgan <nick.corgan@ettus.com> | 2016-01-08 10:03:58 -0800 | 
|---|---|---|
| committer | Ashish Chaudhari <ashish@ettus.com> | 2016-01-08 13:31:55 -0800 | 
| commit | aa38ea64e950325d43cc284f59878044ea4f935a (patch) | |
| tree | e7c985067e7cfd5cd801dfb8ed85b7591e2e39f8 | |
| parent | b025e7ec71839da95c94784759de40482e7d77f1 (diff) | |
| download | uhd-aa38ea64e950325d43cc284f59878044ea4f935a.tar.gz uhd-aa38ea64e950325d43cc284f59878044ea4f935a.tar.bz2 uhd-aa38ea64e950325d43cc284f59878044ea4f935a.zip  | |
n230: fixed string formatting warning
| -rw-r--r-- | host/lib/usrp/n230/n230_frontend_ctrl.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/host/lib/usrp/n230/n230_frontend_ctrl.cpp b/host/lib/usrp/n230/n230_frontend_ctrl.cpp index 9de106fde..e0820d9b2 100644 --- a/host/lib/usrp/n230/n230_frontend_ctrl.cpp +++ b/host/lib/usrp/n230/n230_frontend_ctrl.cpp @@ -1,5 +1,5 @@  // -// Copyright 2013-2014 Ettus Research LLC +// Copyright 2013-2014,2016 Ettus Research LLC  //  // This program is free software: you can redistribute it and/or modify  // it under the terms of the GNU General Public License as published by @@ -20,6 +20,7 @@  #include <uhd/utils/msg.hpp>  #include <uhd/exception.hpp>  #include <uhd/types/dict.hpp> +#include <boost/format.hpp>  #include <boost/thread.hpp>  #include "n230_fpga_defs.h" @@ -119,7 +120,9 @@ public:          } else if (which == 1) {              set_stream_state(_fe_states[0].state, state);          } else { -            throw uhd::value_error("n230: unknown stream index option: " + which); +            throw uhd::value_error( +                str(boost::format("n230: unknown stream index option: %d") % which) +            );          }      }  | 
