diff --git a/fs/block_dev.c b/fs/block_dev.c
index 10e21465d5a963ea0f0e07461dd6c2c24b68d8f0..666367e13711774d85f67ed9b46d067b85306f56 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -776,7 +776,7 @@ int bdev_dax_supported(struct super_block *sb, int blocksize)
 
 	if (len < 1) {
 		vfs_msg(sb, KERN_ERR,
-				"error: dax access failed (%d)", len);
+				"error: dax access failed (%ld)", len);
 		return len < 0 ? len : -EIO;
 	}