factor: fix HALF_FMT usage
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 10 Apr 2017 08:13:14 +0000 (10:13 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 10 Apr 2017 08:13:14 +0000 (10:13 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/factor.c

index 4e521dbc02cf424727acc7d7e4d4f7ab7ba8d2d9..5c4d124a86424f230d256c99777016f7b6e0d5f9 100644 (file)
@@ -118,7 +118,7 @@ static NOINLINE void factorize(wide_t N)
                 */
                while ((N % factor) == 0) { /* not likely */
                        N = N / factor;
-                       printf(" %u"HALF_FMT, factor);
+                       printf(" %"HALF_FMT"u", factor);
                        max_factor = isqrt_odd(N);
                }
  next_factor: