From: Stefan Wahren Date: Sat, 28 Apr 2018 15:47:41 +0000 (+0200) Subject: staging: vchiq_arm: print real dump limit X-Git-Tag: v5.15~8661^2~329 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d35346604a17a44d5798dd8df87d21026c7c2be0;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Greg Kroah-Hartman --- 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 4b16aa4..8575bd8 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,