Print off_t after type conversion for compatibility 72/239172/1 submit/tizen/20200722.083807
authorKichan Kwon <k_c.kwon@samsung.com>
Wed, 22 Jul 2020 08:35:29 +0000 (17:35 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Wed, 22 Jul 2020 08:35:29 +0000 (17:35 +0900)
- arm : %lu
- aarch64 : %llu
- Fix printing type to prevent build error

Change-Id: I5cd0e72541464b26ca8b70e06f0d4079e9a23b3f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/system-recovery.c

index f4265cda7890ad12586d329ce83e9f997a942802..cdca953a911b5753b657cf8ae09f586366874ca9 100644 (file)
@@ -166,7 +166,7 @@ static int read_config_file(struct image **image_list)
                ret = stat(path, &statbuf);
                ASSERT_RETV(ret == 0, errno, "Failed to get file status (%d)", errno);
 
-               _I("Image size : %lu", statbuf.st_size);
+               _I("Image size : %llu", (unsigned long long)statbuf.st_size);
                total_image_size += statbuf.st_size;
 
                image = calloc(1, sizeof(struct image));