From 94b109de9c357d87f87de63bc9618bad43e0a632 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Wed, 8 Jan 2020 11:44:10 +0900 Subject: [PATCH] Fix log type specifier Change-Id: If0b713d19c48bbde1e855401fcf09e9b4e24e083 Signed-off-by: Youngjae Cho --- src/tzip/tzip-utility.c | 2 +- src/tzip/tzip.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tzip/tzip-utility.c b/src/tzip/tzip-utility.c index d1ce7e3..8e749e3 100644 --- a/src/tzip/tzip-utility.c +++ b/src/tzip/tzip-utility.c @@ -928,7 +928,7 @@ int tzip_remount_zipfs(const char *src_file, const char *mount_point) } if (sizeof(TZIP_ROOT_PATH) + strlen(mount_point) > PATH_MAX) { - _E("path length exceed %d. mount_point(%d).", PATH_MAX, strlen(mount_point)); + _E("path length exceed %d. mount_point(%zu).", PATH_MAX, strlen(mount_point)); ret = -ENOMEM; goto out; } diff --git a/src/tzip/tzip.c b/src/tzip/tzip.c index 329d4a8..b638740 100644 --- a/src/tzip/tzip.c +++ b/src/tzip/tzip.c @@ -629,7 +629,7 @@ static int tzip_mount_zipfs(const char *src_file, const char *mount_point, const } if (sizeof(TZIP_ROOT_PATH) + strlen(mount_point) > PATH_MAX) { - _E("path length exceed %d. mount_point(%d).", PATH_MAX, strlen(mount_point)); + _E("path length exceed %d. mount_point(%zu).", PATH_MAX, strlen(mount_point)); remove_mount_entry(mount_point); ret = -ENOMEM; goto out; @@ -688,7 +688,7 @@ static int tzip_unmount_zipfs(const char *mount_point) } if (sizeof(TZIP_ROOT_PATH) + strlen(mount_point) > PATH_MAX) { - _E("path length exceed %d. mount_point(%d).", PATH_MAX, strlen(mount_point)); + _E("path length exceed %d. mount_point(%zu).", PATH_MAX, strlen(mount_point)); ret = -ENOMEM; goto out_unlock; } @@ -743,7 +743,7 @@ static int tzip_is_mounted(const char *mount_point) tzip_unlock(); if (sizeof(TZIP_ROOT_PATH) + strlen(mount_point) > PATH_MAX) { - _E("path length exceed %d. mount_point(%d).", PATH_MAX, strlen(mount_point)); + _E("path length exceed %d. mount_point(%zu).", PATH_MAX, strlen(mount_point)); return -ENOMEM; } -- 2.7.4