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;
}
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;
}
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;
}
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){
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){
}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:
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;
}