summaryrefslogtreecommitdiffstats
path: root/fs_mgr/fs_mgr_verity.c
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-03-04 13:29:12 -0800
committerAndreas Gampe <agampe@google.com>2015-03-04 13:29:12 -0800
commiteb69e857685a086538020b59396ee3fea4ba6c93 (patch)
tree082fc29453372cf966736c5fdc1d99f76a848808 /fs_mgr/fs_mgr_verity.c
parent8ee42f9c50086830edb2cdf035ad5bedcf0fa6f1 (diff)
downloadsystem_core-eb69e857685a086538020b59396ee3fea4ba6c93.zip
system_core-eb69e857685a086538020b59396ee3fea4ba6c93.tar.gz
system_core-eb69e857685a086538020b59396ee3fea4ba6c93.tar.bz2
Fs_mgr: Fix format code
Suggested printing for off_t is to cast to intmax_t and print that. Follow-up to https://android-review.googlesource.com/133111. Change-Id: Icff6844044c3d0fa6372c3f399453a526fd89954
Diffstat (limited to 'fs_mgr/fs_mgr_verity.c')
-rw-r--r--fs_mgr/fs_mgr_verity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs_mgr/fs_mgr_verity.c b/fs_mgr/fs_mgr_verity.c
index 70f40fe..028791c 100644
--- a/fs_mgr/fs_mgr_verity.c
+++ b/fs_mgr/fs_mgr_verity.c
@@ -431,7 +431,7 @@ static int check_verity_restart(const char *fname)
}
if (lseek(fd, s.st_size - size, SEEK_SET) == -1) {
- ERROR("Failed to lseek %zu %s (%s)\n", s.st_size - size, fname,
+ ERROR("Failed to lseek %jd %s (%s)\n", (intmax_t)(s.st_size - size), fname,
strerror(errno));
goto out;
}