1 From 21fd9cca44f4400b7c157e4698adb4134b3b9652 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 7 Mar 2016 15:05:11 +0000
4 Subject: [PATCH 166/381] vchiq_arm: Tweak the logging output
6 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
8 .../vc04_services/interface/vchiq_arm/vchiq_core.c | 31 +++++++++-------------
9 1 file changed, 13 insertions(+), 18 deletions(-)
11 --- a/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_core.c
12 +++ b/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_core.c
13 @@ -891,16 +891,14 @@ queue_message(VCHIQ_STATE_T *state, VCHI
18 - if (SRVTRACE_ENABLED(service,
20 - vchiq_log_dump_mem("Sent", 0,
27 + if (SRVTRACE_ENABLED(service,
29 + vchiq_log_dump_mem("Sent", 0,
33 spin_lock("a_spinlock);
34 service_quota->message_use_count++;
36 @@ -1039,16 +1037,13 @@ queue_message_sync(VCHIQ_STATE_T *state,
41 - if (vchiq_sync_log_level >=
43 - vchiq_log_dump_mem("Sent Sync",
44 - 0, header->data + pos,
50 + if (vchiq_sync_log_level >= VCHIQ_LOG_TRACE)
51 + vchiq_log_dump_mem("Sent Sync",
55 VCHIQ_SERVICE_STATS_INC(service, ctrl_tx_count);
56 VCHIQ_SERVICE_STATS_ADD(service, ctrl_tx_bytes, size);
58 @@ -1720,7 +1715,7 @@ parse_rx_slots(VCHIQ_STATE_T *state)
59 remoteport, localport, size);
61 vchiq_log_dump_mem("Rcvd", 0, header->data,
66 if (((unsigned int)header & VCHIQ_SLOT_MASK) + calc_stride(size)
67 @@ -2187,7 +2182,7 @@ sync_func(void *v)
68 remoteport, localport, size);
70 vchiq_log_dump_mem("Rcvd", 0, header->data,