mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
experts: add print for device_addr_t
This commit is contained in:
parent
a8093d5fd6
commit
b4f180da86
@ -9,6 +9,7 @@
|
||||
|
||||
#include <uhd/config.hpp>
|
||||
#include <uhd/exception.hpp>
|
||||
#include <uhd/types/device_addr.hpp>
|
||||
#include <uhd/types/time_spec.hpp>
|
||||
#include <uhd/utils/dirty_tracked.hpp>
|
||||
#include <uhd/utils/noncopyable.hpp>
|
||||
@ -104,6 +105,13 @@ public:
|
||||
os << time.get_real_secs();
|
||||
return os.str();
|
||||
}
|
||||
|
||||
static std::string print(const device_addr_t addr)
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << addr.to_string();
|
||||
return os.str();
|
||||
}
|
||||
};
|
||||
|
||||
/*!---------------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user