Martin Braun
ff80b05824
utils: log: Fix includes for UHD_HEX()
...
Using UHD_HEX() requires <iomanip>, which is now part of log.hpp.
2019-06-12 10:52:02 -07:00
Martin Braun
7b5d38fbf7
log: Fix ANSI colour codes
...
The colour codes used for console logging were incorrectly defined.
Some colours would simply not rendered this way (e.g., red), others
had the boldness flag wrong.
2019-05-07 18:39:18 -07:00
Brent Stapleton
967be2a4e8
uhd: mpm: apply clang-format to all files
...
Applying formatting changes to all .cpp and .hpp files in the following
directories:
```
find host/examples/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/tests/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/utils/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find mpm/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
```
Also formatted host/include/, except Cpp03 was used as a the language
standard instead of Cpp11.
```
sed -i 's/ Cpp11/ Cpp03/g' .clang-format
find host/include/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
```
Formatting style was designated by the .clang-format file.
2019-01-16 11:40:23 -08:00
Martin Braun
ae5211d71d
uhd: Update license headers
...
All copyright is now attributed to "Ettus Research, a National
Instruments company".
SPDX headers were also updated to latest version 3.0.
2018-02-19 16:54:52 -08:00
Martin Braun
4f948e2c8b
Move all license headers to SPDX format.
2017-12-22 10:45:51 -08:00
Martin Braun
412acb8537
log: Split add_logger() out of the main logging header
...
This way, C++11 features are not required to build with UHD headers
included.
2017-05-12 21:26:01 -07:00
Martin Braun
0f30ef70f0
log: Moved fastpath logging to its own thread
2017-04-24 14:19:10 -07:00
Martin Braun
107c105e40
log: Fix missing add_logger, fix clearing of queue
2017-04-20 13:38:20 -07:00
Andrej Rode
21aad77c9c
utils: introduce new logging API and remove msg API
2017-02-20 17:13:15 -08:00