Skip to content

Commit 48f3f77

Browse files
author
Phil Elwell
committed
vchiq_arm: Tweak the logging output
Signed-off-by: Phil Elwell <[email protected]>
1 parent c8b56d0 commit 48f3f77

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

drivers/misc/vc04_services/interface/vchiq_arm/vchiq_core.c

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -891,16 +891,14 @@ queue_message(VCHIQ_STATE_T *state, VCHIQ_SERVICE_T *service,
891891
error_count);
892892
return VCHIQ_ERROR;
893893
}
894-
if (i == 0) {
895-
if (SRVTRACE_ENABLED(service,
896-
VCHIQ_LOG_INFO))
897-
vchiq_log_dump_mem("Sent", 0,
898-
header->data + pos,
899-
min(64u,
900-
elements[0].size));
901-
}
902894
}
903895

896+
if (SRVTRACE_ENABLED(service,
897+
VCHIQ_LOG_INFO))
898+
vchiq_log_dump_mem("Sent", 0,
899+
header->data,
900+
min(16, pos));
901+
904902
spin_lock(&quota_spinlock);
905903
service_quota->message_use_count++;
906904

@@ -1039,16 +1037,13 @@ queue_message_sync(VCHIQ_STATE_T *state, VCHIQ_SERVICE_T *service,
10391037
error_count);
10401038
return VCHIQ_ERROR;
10411039
}
1042-
if (i == 0) {
1043-
if (vchiq_sync_log_level >=
1044-
VCHIQ_LOG_TRACE)
1045-
vchiq_log_dump_mem("Sent Sync",
1046-
0, header->data + pos,
1047-
min(64u,
1048-
elements[0].size));
1049-
}
10501040
}
10511041

1042+
if (vchiq_sync_log_level >= VCHIQ_LOG_TRACE)
1043+
vchiq_log_dump_mem("Sent Sync",
1044+
0, header->data,
1045+
min(16, pos));
1046+
10521047
VCHIQ_SERVICE_STATS_INC(service, ctrl_tx_count);
10531048
VCHIQ_SERVICE_STATS_ADD(service, ctrl_tx_bytes, size);
10541049
} else {
@@ -1720,7 +1715,7 @@ parse_rx_slots(VCHIQ_STATE_T *state)
17201715
remoteport, localport, size);
17211716
if (size > 0)
17221717
vchiq_log_dump_mem("Rcvd", 0, header->data,
1723-
min(64, size));
1718+
min(16, size));
17241719
}
17251720

17261721
if (((unsigned int)header & VCHIQ_SLOT_MASK) + calc_stride(size)
@@ -2187,7 +2182,7 @@ sync_func(void *v)
21872182
remoteport, localport, size);
21882183
if (size > 0)
21892184
vchiq_log_dump_mem("Rcvd", 0, header->data,
2190-
min(64, size));
2185+
min(16, size));
21912186
}
21922187

21932188
switch (type) {

0 commit comments

Comments
 (0)