struct coordinator *cdt = container_of(kobj, struct coordinator,
cdt_hsm_kobj);
- return scnprintf(buf, PAGE_SIZE, "%lu\n", cdt->cdt_loop_period);
+ return scnprintf(buf, PAGE_SIZE, "%u\n", cdt->cdt_loop_period);
}
ssize_t loop_period_store(struct kobject *kobj, struct attribute *attr,
struct coordinator *cdt = container_of(kobj, struct coordinator,
cdt_hsm_kobj);
- return scnprintf(buf, PAGE_SIZE, "%lu\n", cdt->cdt_grace_delay);
+ return scnprintf(buf, PAGE_SIZE, "%u\n", cdt->cdt_grace_delay);
}
ssize_t grace_delay_store(struct kobject *kobj, struct attribute *attr,
struct coordinator *cdt = container_of(kobj, struct coordinator,
cdt_hsm_kobj);
- return scnprintf(buf, PAGE_SIZE, "%lu\n", cdt->cdt_active_req_timeout);
+ return scnprintf(buf, PAGE_SIZE, "%d\n", cdt->cdt_active_req_timeout);
}
ssize_t active_request_timeout_store(struct kobject *kobj,
* list */
struct mutex cdt_restore_lock; /**< protect restore
* list */
- time_t cdt_loop_period; /**< llog scan period */
- time_t cdt_grace_delay; /**< request grace
+ s32 cdt_loop_period; /**< llog scan period */
+ s32 cdt_grace_delay; /**< request grace
* delay */
- time_t cdt_active_req_timeout; /**< request timeout */
+ s32 cdt_active_req_timeout; /**< request timeout */
__u32 cdt_default_archive_id; /**< archive id used
* when none are
* specified */
__u32 createtime, canceltime;
/*
* There was a problem with the original declaration of
- * cfg_marker on 32-bit systems because it used time_t as
+ * cfg_marker on 32-bit systems because it used 32 time as
* a wire protocol structure, and didn't verify this in
* wirecheck. We now have to convert the offsets of the
* later fields in order to work on 32- and 64-bit systems.
} else {
if (sf->sf_run_time != 0)
speed = div_s64(speed, sf->sf_run_time);
- seq_printf(m, "run_time: %ld seconds\n"
+ seq_printf(m, "run_time: %d seconds\n"
"average_speed: %lld objects/sec\n"
"real_time_speed: N/A\n"
"current_position: N/A\n",