From: Loic Dachary Date: Tue, 14 Feb 2017 22:49:16 +0000 (+0100) Subject: crush: fix dprintk compilation X-Git-Tag: v12.0.1~396^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13424%2Fhead;p=ceph.git crush: fix dprintk compilation The syntax error was not noticed because dprintk is a macro and the code is discarded by default. Signed-off-by: Loic Dachary --- diff --git a/src/crush/mapper.c b/src/crush/mapper.c index db71fd76d3e0..f790cb431cd6 100644 --- a/src/crush/mapper.c +++ b/src/crush/mapper.c @@ -104,7 +104,7 @@ static int bucket_perm_choose(const struct crush_bucket *bucket, /* calculate permutation up to pr */ for (i = 0; i < work->perm_n; i++) - dprintk(" perm_choose have %d: %d\n", i, bucket->perm[i]); + dprintk(" perm_choose have %d: %d\n", i, work->perm[i]); while (work->perm_n <= pr) { unsigned int p = work->perm_n; /* no point in swapping the final entry */ @@ -121,7 +121,7 @@ static int bucket_perm_choose(const struct crush_bucket *bucket, work->perm_n++; } for (i = 0; i < bucket->size; i++) - dprintk(" perm_choose %d: %d\n", i, bucket->perm[i]); + dprintk(" perm_choose %d: %d\n", i, work->perm[i]); s = work->perm[pr]; out: