Use casting when printing value that may be of a different type

The stat struct could use whatever type for st_* fields.
This commit is contained in:
Andrea Mazzoleni 2017-10-27 22:54:42 +02:00
parent 57a1df44a4
commit 61a1e7a7e6
7 changed files with 14 additions and 14 deletions

View file

@ -137,7 +137,7 @@ void state_touch(struct snapraid_state* state)
/* state changed, we need to update it */
state->need_write = 1;
log_tag("touch:%s:%s: %" PRIu64 ".%d\n", disk->name, esc_tag(file->sub, esc_buffer), (uint64_t)st.st_mtime, (int)STAT_NSEC(&st));
log_tag("touch:%s:%s: %" PRIu64 ".%d\n", disk->name, esc_tag(file->sub, esc_buffer), (uint64_t)st.st_mtime, STAT_NSEC(&st));
msg_info("touch %s\n", fmt_term(disk, file->sub, esc_buffer));
}
}