Change log(...) to printf(...)