thermal: step_wise: remove build warnings caused by print log 02/158502/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 09:03:47 +0000 (18:03 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 09:04:08 +0000 (18:04 +0900)
Remove build warnings caused by product print log.

Change-Id: I7a764079539ad40cfcad1d3d6dfbb92306520ad9
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/thermal/step_wise.c

index f80417d442d0a87cec148f310809021759bc815b..1b8fda2926a3e9ca436a2c91c648784a56b87270 100644 (file)
@@ -169,7 +169,7 @@ static int get_hyst_target(struct thermal_zone_device *tz)
                tz->ops->get_trip_temp(tz, count, &trip_temp);
                tz->ops->get_trip_hyst(tz, count, &trip_hyst);
                hyst_temp = trip_temp - trip_hyst;
-               printk("trip:%d, temp:%d, hyst_temp:%d\n", count, tz->temperature, hyst_temp);
+               printk("trip:%d, temp:%d, hyst_temp:%lu\n", count, tz->temperature, hyst_temp);
                if (tz->temperature < (long)hyst_temp  + TRIP_TEMP_OFFSET)
                        break;
        }
@@ -186,7 +186,7 @@ static int get_trip_target(struct thermal_zone_device *tz)
 
        for (count = 0; count < tz->trips; count++) {
                tz->ops->get_trip_temp(tz, count, &trip_temp);
-               printk("trip:%d, temp:%d, trip_temp:%d\n", count, tz->temperature, trip_temp);
+               printk("trip:%d, temp:%d, trip_temp:%lu\n", count, tz->temperature, trip_temp);
                if (tz->temperature < (long)trip_temp  - TRIP_TEMP_OFFSET)
                        break;
        }
@@ -202,7 +202,7 @@ static int get_step_wise_target(struct thermal_instance *instance,
        unsigned long new_target;
 
        cur_target = instance->target;
-       printk("%s: %s trip:%d cur_target:%d\n", cdev->type, __func__, trip, cur_target);
+       printk("%s: %s trip:%d cur_target:%lu\n", cdev->type, __func__, trip, cur_target);
        if (cur_target == THERMAL_NO_TARGET){
                cur_target = instance->lower;
        }
@@ -210,7 +210,7 @@ static int get_step_wise_target(struct thermal_instance *instance,
                tz->ops->get_trend(tz, trip, &trend);
        }else{
                new_target = get_trip_target(tz);
-               printk("%s: %s trip:%d new_target:%d\n", cdev->type, __func__, trip, new_target);
+               printk("%s: %s trip:%d new_target:%lu\n", cdev->type, __func__, trip, new_target);
                if (new_target < cur_target){
                        trend = THERMAL_TREND_DROPPING;
                        if (!tz->ops->get_trip_hyst){
@@ -223,7 +223,7 @@ static int get_step_wise_target(struct thermal_instance *instance,
        switch (trend){
                case THERMAL_TREND_RAISING:
                        new_target = get_trip_target(tz);
-                       printk("%s: %s trend raising, target:%d\n", cdev->type, __func__, new_target);
+                       printk("%s: %s trend raising, target:%lu\n", cdev->type, __func__, new_target);
                        goto raising;
                case THERMAL_TREND_DROPPING:
                        if (tz->ops->get_trip_hyst){
@@ -231,7 +231,7 @@ static int get_step_wise_target(struct thermal_instance *instance,
                        }else{
                                new_target = get_trip_target(tz);
                        }
-                       printk("%s: %s trend dropping, target:%d\n", cdev->type, __func__, new_target);
+                       printk("%s: %s trend dropping, target:%lu\n", cdev->type, __func__, new_target);
                        goto dropping;
                case THERMAL_TREND_STABLE:
                default:
@@ -261,7 +261,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
                if (instance->trip != trip)
                        continue;
                target = get_step_wise_target(instance, tz, trip);
-               printk("%s: get target_state: %d\n", instance->cdev->type, target);
+               printk("%s: get target_state: %lu\n", instance->cdev->type, target);
                if (target == THERMAL_NO_TARGET){
                        continue;
                }