math/gen: fix ilogb, logb and modf in mp, change integer print fmt
[libc-test] / src / math / gen / gen.c
index 123cfb8..6bc3c96 100644 (file)
@@ -290,7 +290,7 @@ static int print(const char *fmt, struct t *t, char *buf, int n)
                        continue;
                }
                if (*fmt == 'i') {
-                       k = snprintf(buf, n, ", %lld", t->i);
+                       k = snprintf(buf, n, ", %11lld", t->i);
                        if (k < 0 || k >= n)
                                return -1;
                        n -= k;