summaryrefslogtreecommitdiff
path: root/lib/libalpm/dload.c
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-11-14 20:26:37 +0100
committerDan McGee <dan@archlinux.org>2010-03-25 21:58:35 -0500
commit7965345d435870a47073fffafa2a429744aa2deb (patch)
treefc4a902ffb0310af5a75bd47aec1c8b28be6d146 /lib/libalpm/dload.c
parent21abae98cbd382d8fab4427109776d983cd07c9f (diff)
downloadpacman-7965345d435870a47073fffafa2a429744aa2deb.tar.xz
More consistent printing of off_t and time_t
time_t : %ld off_t : %jd and cast to intmax_t Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r--lib/libalpm/dload.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index cff5cc5d..c11148d1 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -190,8 +190,8 @@ static int download_internal(const char *url, const char *localpath,
_alpm_log(PM_LOG_DEBUG, "ust.mtime: %ld local_time: %ld compare: %ld\n",
ust.mtime, local_time, local_time - ust.mtime);
- _alpm_log(PM_LOG_DEBUG, "ust.size: %"PRId64" local_size: %"PRId64" compare: %"PRId64"\n",
- ust.size, local_size, local_size - ust.size);
+ _alpm_log(PM_LOG_DEBUG, "ust.size: %jd local_size: %jd compare: %jd\n",
+ (intmax_t)ust.size, (intmax_t)local_size, (intmax_t)(local_size - ust.size));
if(!force && ust.mtime && ust.mtime == local_time
&& ust.size && ust.size == local_size) {
/* the remote time and size values agreed with what we have, so move on
@@ -224,7 +224,7 @@ static int download_internal(const char *url, const char *localpath,
fclose(localf);
localf = NULL;
} else if(fileurl->offset) {
- _alpm_log(PM_LOG_DEBUG, "resuming download at position %"PRId64"\n", fileurl->offset);
+ _alpm_log(PM_LOG_DEBUG, "resuming download at position %jd\n", (intmax_t)fileurl->offset);
}