diff options
author | David Sterba <dsterba@suse.com> | 2016-10-04 23:00:20 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-10-05 12:39:01 +0200 |
commit | a288d6dafc232f4d9450f9e6c455300e2268c85b (patch) | |
tree | a5fa46ca72d21fe44903f05aa8bfd0c23b3e220e | |
parent | c8d9f05cec0421a0eb3476a664da7d5a0767284d (diff) |
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>
-rw-r--r-- | mkfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -900,8 +900,9 @@ static int traverse_directory(struct btrfs_trans_handle *trans, 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; |