Compiler complains about nlink_t and %ld format on 32bit build. Add
typecast and fix the format.
Signed-off-by: David Sterba <dsterba@suse.com>
if (ret == -EEXIST) {
if (st.st_nlink <= 1) {
error(
- "item %s already exists but has wrong st_nlink %ld <= 1",
- cur_file->d_name, st.st_nlink);
+ "item %s already exists but has wrong st_nlink %lu <= 1",
+ cur_file->d_name,
+ (unsigned long)st.st_nlink);
goto fail;
}
continue;