aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Fjeldtvedt <jaffe1@gmail.com>2016-08-09 16:51:50 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2016-08-10 09:08:02 +0200
commit55daf8a417744269b08ff601176779f533655670 (patch)
tree54a42854e9f67ef3f4de7c8fe3c7145fa57de63e
parentee14f940a2c8c087404a643badf5567e2eebf7c1 (diff)
cec-follower: clean up output layout
This makes it easier to separate device info messages / state changes from the arriving messages when in verbose mode. Signed-off-by: Johan Fjeldtvedt <jaffe1@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/cec-follower/cec-follower.h2
-rw-r--r--utils/cec-follower/cec-processing.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/cec-follower/cec-follower.h b/utils/cec-follower/cec-follower.h
index 3d134b69..178fd093 100644
--- a/utils/cec-follower/cec-follower.h
+++ b/utils/cec-follower/cec-follower.h
@@ -157,7 +157,7 @@ struct short_audio_desc {
#define dev_info(fmt, args...) \
do { \
if (show_state) \
- printf("\tdevice: " fmt, ##args); \
+ printf(">>> " fmt, ##args); \
} while(0)
#define warn(fmt, args...) \
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index 5588e6bf..5dde9606 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -947,7 +947,7 @@ void testProcessing(struct node *node)
if (from != CEC_LOG_ADDR_UNREGISTERED && !la_info[from].ts)
dev_info("Logical address %d (%s) discovered.\n", from, la2s(from));
if (show_msgs) {
- printf("Received from %s to %s (%d to %d): ",
+ printf(" %s to %s (%d to %d): ",
la2s(from), to == 0xf ? "all" : la2s(to), from, to);
log_msg(&msg);
if (show_info)

Privacy Policy