modify ALog to use printf