fixed 'implicit call to printf' warning