From: binqi.zhang Date: Tue, 25 Sep 2018 09:01:51 +0000 (+0800) Subject: ion_dev: fix detects in ion_dev X-Git-Tag: khadas-vims-v0.9.6-release~1340 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00c59f8371c318baf7509bcd1f5df426223c2866;p=platform%2Fkernel%2Flinux-amlogic.git ion_dev: fix detects in ion_dev PD#166793: SWPL-198 Coverity for ion Change-Id: I0f327888fc3fbb0247e489b8da9d1bc3dce03c23 Signed-off-by: binqi.zhang --- diff --git a/drivers/amlogic/media/common/ion_dev/dev_ion.c b/drivers/amlogic/media/common/ion_dev/dev_ion.c index 50fb98f..e740dc7 100644 --- a/drivers/amlogic/media/common/ion_dev/dev_ion.c +++ b/drivers/amlogic/media/common/ion_dev/dev_ion.c @@ -32,13 +32,13 @@ MODULE_DESCRIPTION("AMLOGIC ION driver"); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Amlogic SH"); -static unsigned int debug = 1; +static unsigned int debug = 2; module_param(debug, uint, 0644); MODULE_PARM_DESC(debug, "activates debug info"); #define dprintk(level, fmt, arg...) \ do { \ - if (debug >= level) \ + if (debug > level) \ pr_debug("ion-dev: " fmt, ## arg); \ } while (0)