X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Flog.c;h=c0150f28aa5db7f33014cfe568c07c793c8caa70;hb=457b0dbfc1d72080f6ba9fe47cd712e0f090732a;hp=17a2a55ad9710deb9464ae2b6b6df66fed812244;hpb=4282b03a8c212b0e38af1876364be5f332673ce6;p=libc-test diff --git a/src/math/log.c b/src/math/log.c index 17a2a55..c0150f2 100644 --- a/src/math/log.c +++ b/src/math/log.c @@ -22,14 +22,15 @@ int main(void) y = log(p->x); e = getexcept(); if (!checkexcept(e, p->e, p->r)) { - printf("%s log(%a)==%a except: want %s", rstr(p->r), p->x, p->y, estr(p->e)); + printf("%s:%d: bad fp exception: %s log(%a)=%a, want %s", + p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e)); printf(" got %s\n", estr(e)); err++; } d = ulperr(y, p->y, p->dy); if (!checkulp(d, p->r)) { - printf("%s log(%a) want %a got %a ulperr %.3f = %a + %a\n", - rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); + printf("%s:%d: %s log(%a) want %a got %a ulperr %.3f = %a + %a\n", + p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); err++; } }