aboutsummaryrefslogtreecommitdiffstats
path: root/tools/kitchen_sink
diff options
context:
space:
mode:
authorBalint Seeber <balint@ettus.com>2014-11-26 10:22:52 -0800
committerMartin Braun <martin.braun@ettus.com>2014-11-26 20:51:47 +0100
commit3fd576a26505892db72068ce436daaa915414832 (patch)
tree47dfd76b1c4ed7465cc70410314513613c91b5fa /tools/kitchen_sink
parent4047400063a6821298d541535fac8ca8e78fbf17 (diff)
downloaduhd-3fd576a26505892db72068ce436daaa915414832.tar.gz
uhd-3fd576a26505892db72068ce436daaa915414832.tar.bz2
uhd-3fd576a26505892db72068ce436daaa915414832.zip
ks: different colours for OULSD status letters, timestamp 'Stopping' message
Diffstat (limited to 'tools/kitchen_sink')
-rw-r--r--tools/kitchen_sink/kitchen_sink.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/kitchen_sink/kitchen_sink.cpp b/tools/kitchen_sink/kitchen_sink.cpp
index c73eafbe4..f350f4516 100644
--- a/tools/kitchen_sink/kitchen_sink.cpp
+++ b/tools/kitchen_sink/kitchen_sink.cpp
@@ -171,14 +171,20 @@ static void _select_msg_colour(char c, std::stringstream& ss)
switch (c)
{
case 'U':
+ ss << COLOUR_MAGENTA;
+ break;
case 'L':
ss << COLOUR_RED;
break;
case 'S':
+ ss << COLOUR_CYAN;
+ break;
case 'O':
- case 'D':
ss << COLOUR_GREEN;
break;
+ case 'D':
+ ss << COLOUR_YELLOW;
+ break;
default:
ss << COLOUR_BLACK;
}
@@ -1844,7 +1850,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
running = false;
- std::cout << HEADER "Stopping..." << std::endl;
+ std::cout << HEADER << "(" << get_stringified_time() << ") Stopping..." << std::endl;
// FIXME: Timed wait & re-enable interruptions