summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2018-04-28 17:47:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-06 19:04:42 -0700
commitd35346604a17a44d5798dd8df87d21026c7c2be0 (patch)
tree21c7f829e344ea4af0a3f21fb9998dfce0227728 /drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
parent2610df41489f548e235171b86895d4b49e6acb1f (diff)
staging: vchiq_arm: print real dump limit
We better use the real loop limit in the warning about "too many active services". Another benefit is than we don't have to care about the format string in the following change. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c')
-rw-r--r--drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
index 4b16aa426a6d..8575bd8717c8 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
@@ -3479,8 +3479,7 @@ vchiq_dump_service_use_state(VCHIQ_STATE_T *state)
if (only_nonzero)
vchiq_log_warning(vchiq_susp_log_level, "Too many active "
"services (%d). Only dumping up to first %d services "
- "with non-zero use-count", active_services,
- local_max_services);
+ "with non-zero use-count", active_services, j);
for (i = 0; i < j; i++) {
vchiq_log_warning(vchiq_susp_log_level,