inv_mpu: fix compilation warning
authorHuang, Tao <huangtao@rock-chips.com>
Mon, 4 May 2015 12:50:42 +0000 (20:50 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 4 May 2015 12:50:42 +0000 (20:50 +0800)
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
drivers/misc/inv_mpu/mldl_cfg.c
drivers/misc/inv_mpu/mldl_print_cfg.c

index 759f79227fd5708ef9764f534a5c816211fdec94..957bf01fde1c961493b3558bef00b58628171a7b 100755 (executable)
@@ -465,7 +465,7 @@ static int inv_get_silicon_rev_mpu6050(
 
        } else {
                MPL_LOGE("Software revision key is outside of known "
-                        "range [0..%d] : %d\n", ARRAY_SIZE(sw_rev_map),ARRAY_SIZE(sw_rev_map));
+                        "range [0..%zu] : %zu\n", ARRAY_SIZE(sw_rev_map),ARRAY_SIZE(sw_rev_map));
                return INV_ERROR_INVALID_MODULE;
        }
 
index 79f8f455735f74a8f1061534cfef156eeb6191e8..f280b8ce4ecd809e4a5cbc90841bc691511ed44e 100755 (executable)
@@ -88,9 +88,9 @@ void mldl_print_cfg(struct mldl_cfg *mldl_cfg)
                if (!slave[ii])
                        continue;
                MPL_LOGV("SLAVE %d:\n", ii);
-               MPL_LOGV("    suspend  = %02x\n", (int)slave[ii]->suspend);
-               MPL_LOGV("    resume   = %02x\n", (int)slave[ii]->resume);
-               MPL_LOGV("    read     = %02x\n", (int)slave[ii]->read);
+               MPL_LOGV("    suspend  = %pf\n", slave[ii]->suspend);
+               MPL_LOGV("    resume   = %pf\n", slave[ii]->resume);
+               MPL_LOGV("    read     = %pf\n", slave[ii]->read);
                MPL_LOGV("    type     = %02x\n", slave[ii]->type);
                MPL_LOGV("    reg      = %02x\n", slave[ii]->read_reg);
                MPL_LOGV("    len      = %02x\n", slave[ii]->read_len);