update all printf/puts calls to gLog