summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-03-17 08:38:37 -0700
committerMark Salyzyn <salyzyn@google.com>2014-03-17 08:38:37 -0700
commit0aff05eb8c23eefb770eb1ecd93e1d39dbab52f5 (patch)
tree570957215607ddf2e07b350f71088b72e57ceef8 /init
parent22377569bbac6621a47a478856799588c5f5a3b6 (diff)
downloadsystem_core-0aff05eb8c23eefb770eb1ecd93e1d39dbab52f5.zip
system_core-0aff05eb8c23eefb770eb1ecd93e1d39dbab52f5.tar.gz
system_core-0aff05eb8c23eefb770eb1ecd93e1d39dbab52f5.tar.bz2
init: 64-bit build issue
Change-Id: Icc5344abc184adf4247175d85b2da08af4636e49
Diffstat (limited to 'init')
-rw-r--r--init/property_service.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/init/property_service.c b/init/property_service.c
index ff22677..db5a45b 100644
--- a/init/property_service.c
+++ b/init/property_service.c
@@ -540,8 +540,9 @@ static void load_persistent_properties()
|| (sb.st_uid != 0)
|| (sb.st_gid != 0)
|| (sb.st_nlink != 1)) {
- ERROR("skipping insecure property file %s (uid=%lu gid=%lu nlink=%d mode=%o)\n",
- entry->d_name, sb.st_uid, sb.st_gid, sb.st_nlink, sb.st_mode);
+ ERROR("skipping insecure property file %s (uid=%u gid=%u nlink=%d mode=%o)\n",
+ entry->d_name, (unsigned int)sb.st_uid, (unsigned int)sb.st_gid,
+ sb.st_nlink, sb.st_mode);
close(fd);
continue;
}