diff options
author | Emil Medve <Emilian.Medve@Freescale.com> | 2013-04-09 15:37:10 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-04-10 20:51:04 (GMT) |
commit | 45bad5d8b2abd5561b2d5211d570b281ea03d05c (patch) | |
tree | f2b1bc1ddc61dfa73a0a860d9dd76de5b8d19070 /drivers/staging/fsl_qbman | |
parent | 532cd8b1fba8b5c0a6098507c515d0907c6f8226 (diff) | |
download | linux-fsl-qoriq-45bad5d8b2abd5561b2d5211d570b281ea03d05c.tar.xz |
fsl_bman: Make bpool depletion test output more readable
In case of depletion, the current output contains the BPID both as a number
and as a mask, with the non-zero 'mask' conveying depletion on the
respective bpool. Is less confusing to just use a binary/boolean value for
displaying the depletion status of a bpool
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Change-Id: Idbab2fa2701405beb6f04327ea199377b36aea73
Reviewed-on: http://git.am.freescale.net:8181/1171
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/staging/fsl_qbman')
-rw-r--r-- | drivers/staging/fsl_qbman/bman_test_thresh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fsl_qbman/bman_test_thresh.c b/drivers/staging/fsl_qbman/bman_test_thresh.c index b11862f..e4e98ef 100644 --- a/drivers/staging/fsl_qbman/bman_test_thresh.c +++ b/drivers/staging/fsl_qbman/bman_test_thresh.c @@ -56,7 +56,7 @@ static void cb_depletion(struct bman_portal *portal, struct affine_test_data *data = opaque; int c = smp_processor_id(); pr_info("cb_depletion: bpid=%d, depleted=%d, cpu=%d, original=%d\n", - bman_get_params(pool)->bpid, depleted, c, data->cpu); + bman_get_params(pool)->bpid, !!depleted, c, data->cpu); /* We should be executing on the CPU of the thread that owns the pool if * and that CPU has an affine portal (ie. it isn't slaved). */ BUG_ON((c != data->cpu) && data->expect_affinity); |