staging: vchiq_arm: print real dump limit
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 28 Apr 2018 15:47:41 +0000 (17:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 02:04:42 +0000 (19:04 -0700)
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>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index 4b16aa4..8575bd8 100644 (file)
@@ -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,