aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2016-01-08 10:03:58 -0800
committerNicholas Corgan <nick.corgan@ettus.com>2016-01-08 10:03:58 -0800
commit4d2639eaf72b5e2029d0421c693110335892fe72 (patch)
tree0bf28d75b983ae5d24bad443cde7ddf7c1cd82e4 /host/lib/usrp
parenta0737f083c604fe6daa20bb36fd9fb890147a40c (diff)
downloaduhd-4d2639eaf72b5e2029d0421c693110335892fe72.tar.gz
uhd-4d2639eaf72b5e2029d0421c693110335892fe72.tar.bz2
uhd-4d2639eaf72b5e2029d0421c693110335892fe72.zip
n230: fixed string formatting warning
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/n230/n230_frontend_ctrl.cpp7
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)
+ );
}
}