[git commit] factor: fix HALF_FMT usage

Denys Vlasenko vda.linux at googlemail.com
Mon Apr 10 08:13:14 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=f428f1dc6cb9e9d3cfcfe3c555d44b6a7686cc88
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 coreutils/factor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/coreutils/factor.c b/coreutils/factor.c
index 4e521db..5c4d124 100644
--- a/coreutils/factor.c
+++ b/coreutils/factor.c
@@ -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:


More information about the busybox-cvs mailing list