X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afh_recv.c;h=28d8f3980f814763cfe249e5762203ff5038a9a5;hp=92e9e8394c31143d892a94434e7daa0c3380f3c7;hb=ce9e297eb91a932a11f81890c800d0380b5bc9c9;hpb=093dda1824631372587d107d64601389027c6187 diff --git a/afh_recv.c b/afh_recv.c index 92e9e839..28d8f398 100644 --- a/afh_recv.c +++ b/afh_recv.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2014 Andre Noll + * Copyright (C) 2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -8,7 +8,6 @@ #include #include -#include #include "para.h" #include "error.h" @@ -41,11 +40,11 @@ static int afh_execute(struct btr_node *btrn, const char *cmd, char **result) *result = NULL; if (!strcmp(cmd, "seconds_total")) { - *result = make_message("%lu", pard->afhi.seconds_total); + *result = make_message("%" PRIu32, pard->afhi.seconds_total); return 1; } if (!strcmp(cmd, "chunks_total")) { - *result = make_message("%lu", pard->afhi.chunks_total); + *result = make_message("%" PRIu32, pard->afhi.chunks_total); return 1; } if (!strcmp(cmd, "afhi")) { @@ -206,7 +205,7 @@ static int afh_recv_post_select(__a_unused struct sched *s, void *context) afh_get_chunk(pard->first_chunk, afhi, pard->map, &start, &size); afh_get_chunk(pard->last_chunk, afhi, pard->map, &end, &size); end += size; - PARA_INFO_LOG("adding %zu bytes\n", end - start); + PARA_INFO_LOG("adding %td bytes\n", end - start); btr_add_output_dont_free(start, end - start, btrn); ret = -E_RECV_EOF; goto out;