The log max is 0XFFFFFF not 0XFF

  * update the log.h accordingly.