long int fix from Nelson Beebe
authorMartin Pool <mbp@samba.org>
Tue, 9 Apr 2002 04:49:23 +0000 (04:49 +0000)
committerMartin Pool <mbp@samba.org>
Tue, 9 Apr 2002 04:49:23 +0000 (04:49 +0000)
generator.c

index 183138c..7a939af 100644 (file)
@@ -190,9 +190,11 @@ static struct sum_struct *generate_sums(struct map_struct *buf, OFF_T len,
                return s;
        }
 
-       if (verbose > 3)
-               rprintf(FINFO, "count=%d rem=%d n=%d flength=%.0f\n",
-                       s->count, s->remainder, s->n, (double) s->flength);
+       if (verbose > 3) {
+               rprintf(FINFO, "count=%ld rem=%ld n=%ld flength=%.0f\n",
+                       (long) s->count, (long) s->remainder,
+                       (long) s->n, (double) s->flength);
+       }
 
        s->sums = (struct sum_buf *) malloc(sizeof(s->sums[0]) * s->count);
        if (!s->sums)