mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-16 17:56:51 +00:00
btrfs-progs: mkfs: fix warning for printf format on 32bit
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>
This commit is contained in:
parent
c8d9f05cec
commit
a288d6dafc
5
mkfs.c
5
mkfs.c
@ -900,8 +900,9 @@ static int traverse_directory(struct btrfs_trans_handle *trans,
|
|||||||
if (ret == -EEXIST) {
|
if (ret == -EEXIST) {
|
||||||
if (st.st_nlink <= 1) {
|
if (st.st_nlink <= 1) {
|
||||||
error(
|
error(
|
||||||
"item %s already exists but has wrong st_nlink %ld <= 1",
|
"item %s already exists but has wrong st_nlink %lu <= 1",
|
||||||
cur_file->d_name, st.st_nlink);
|
cur_file->d_name,
|
||||||
|
(unsigned long)st.st_nlink);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user