Lines Matching refs:LOG
27 #define LOG(...) macro
236 LOG(""); in self_test_division()
237 LOG("division tests (division and modulo):"); in self_test_division()
241 LOG("- test with unsigned small integers:"); in self_test_division()
249 LOG(" 0x%08x / 0x%08x = %u / %u = %u = 0x%x)", in self_test_division()
252 LOG(" 0x%08x %% 0x%08x = %u %% %u = %u = 0x%x)", (unsigned)a, in self_test_division()
254 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
255 LOG(""); in self_test_division()
257 LOG("- test with signed small integers, negative numerator:"); in self_test_division()
265 LOG(" 0x%08x / 0x%08x = %d / %d = %d = 0x%x)", in self_test_division()
268 LOG(" 0x%08x %% 0x%08x = %d %% %d = %d = 0x%x)", (unsigned)a, in self_test_division()
270 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
271 LOG(""); in self_test_division()
273 LOG("- test with signed small integers, negative denominator:"); in self_test_division()
279 LOG("- test with unsigned integers, big numerator (> 0x80000000):"); in self_test_division()
287 LOG(" 0x%08x / 0x%08x = %u / %u = %u = 0x%x)", in self_test_division()
290 LOG(" 0x%08x %% 0x%08x = %u %% %u = %u = 0x%x)", (unsigned)a, in self_test_division()
292 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
293 LOG(""); in self_test_division()
295 LOG("- test with unsigned integers, big num. & denom. (> 0x80000000):"); in self_test_division()
303 LOG(" 0x%08x / 0x%08x = %u / %u = %u = 0x%x)", in self_test_division()
306 LOG(" 0x%08x %% 0x%08x = %u %% %u = %u = 0x%x)", (unsigned)a, in self_test_division()
308 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
309 LOG(""); in self_test_division()
322 LOG("malloc tests:"); in self_test_malloc()
323 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
327 LOG("- p1 = malloc(1024)"); in self_test_malloc()
329 LOG("- p2 = malloc(1024)"); in self_test_malloc()
330 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
338 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
339 LOG(""); in self_test_malloc()
345 LOG("- p3 = realloc(p1, 3*1024)"); in self_test_malloc()
346 LOG("- free p2"); in self_test_malloc()
349 LOG("- p2 = malloc(1024)"); in self_test_malloc()
350 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
355 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
356 LOG(""); in self_test_malloc()
357 LOG("- free p1, p2, p3"); in self_test_malloc()
368 LOG("- p3 = calloc(4, 1024)"); in self_test_malloc()
369 LOG("- p4 = calloc(0x100, 1024*1024) too big: should fail!"); in self_test_malloc()
370 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
375 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
376 LOG(""); in self_test_malloc()
377 LOG("- free p3, p4"); in self_test_malloc()
385 LOG("- p3 = memalign(%d, 1024)", 0x1000); in self_test_malloc()
387 LOG("- p1 = malloc(1024)"); in self_test_malloc()
389 LOG("- p4 = memalign(%d, 512)", 0x100); in self_test_malloc()
390 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
396 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
397 LOG(""); in self_test_malloc()
398 LOG("- free p1, p3, p4"); in self_test_malloc()
408 LOG("- p3 = memalign(%d, 1024)", 100); in self_test_malloc()
410 LOG("- p4 = memalign(%d, 1024)", 0); in self_test_malloc()
411 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
416 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
417 LOG(""); in self_test_malloc()
418 LOG("- free p3, p4"); in self_test_malloc()
425 LOG("- free NULL"); in self_test_malloc()
427 LOG(""); in self_test_malloc()
428 LOG("malloc test done"); in self_test_malloc()
442 LOG("nex_malloc tests:"); in self_test_nex_malloc()
443 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
447 LOG("- p1 = nex_malloc(1024)"); in self_test_nex_malloc()
449 LOG("- p2 = nex_malloc(1024)"); in self_test_nex_malloc()
450 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
458 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
459 LOG(""); in self_test_nex_malloc()
465 LOG("- p3 = nex_realloc(p1, 3*1024)"); in self_test_nex_malloc()
466 LOG("- nex_free p2"); in self_test_nex_malloc()
469 LOG("- p2 = nex_malloc(1024)"); in self_test_nex_malloc()
470 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
475 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
476 LOG(""); in self_test_nex_malloc()
477 LOG("- nex_free p1, p2, p3"); in self_test_nex_malloc()
488 LOG("- p3 = nex_calloc(4, 1024)"); in self_test_nex_malloc()
489 LOG("- p4 = nex_calloc(0x100, 1024*1024) too big: should fail!"); in self_test_nex_malloc()
490 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
495 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
496 LOG(""); in self_test_nex_malloc()
497 LOG("- nex_free p3, p4"); in self_test_nex_malloc()
505 LOG("- p3 = nex_memalign(%d, 1024)", 0x1000); in self_test_nex_malloc()
507 LOG("- p1 = nex_malloc(1024)"); in self_test_nex_malloc()
509 LOG("- p4 = nex_memalign(%d, 512)", 0x100); in self_test_nex_malloc()
510 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
516 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
517 LOG(""); in self_test_nex_malloc()
518 LOG("- nex_free p1, p3, p4"); in self_test_nex_malloc()
528 LOG("- p3 = nex_memalign(%d, 1024)", 100); in self_test_nex_malloc()
530 LOG("- p4 = nex_memalign(%d, 1024)", 0); in self_test_nex_malloc()
531 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
536 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
537 LOG(""); in self_test_nex_malloc()
538 LOG("- nex_free p3, p4"); in self_test_nex_malloc()
545 LOG("- nex_free NULL"); in self_test_nex_malloc()
547 LOG(""); in self_test_nex_malloc()
548 LOG("nex_malloc test done"); in self_test_nex_malloc()
566 LOG("virt_to_phys(%#"PRIxVA") => %#"PRIxPA" (expect %#"PRIxPA")", in check_virt_to_phys()
575 LOG("phys_to_virt(%#"PRIxPA") => %p (expect %#"PRIxVA")", in check_virt_to_phys()
582 LOG("Fail"); in check_virt_to_phys()
593 LOG("phys_to_virt(%#"PRIxPA") => %p (expect %p)", in check_phys_to_virt()
602 LOG("virt_to_phys(%p) => %#"PRIxPA" (expect %#"PRIxPA")", in check_phys_to_virt()
609 LOG("Fail"); in check_phys_to_virt()
624 LOG("virt_to_phys(%#"PRIxVA") => 0 Fail!", va_base); in self_test_va2pa()
738 LOG(" => [asan] test %s: %s", desc, !ret ? "ok" : "FAILED"); in asan_call_test()