- tm=gmtime(&now);
- strftime(timebuf,100,"%Y-%m-%d %H:%M:%S",tm);
- len=snprintf(buf2,1024,"[%s] %s %s\n",timebuf,userbuf,buf);
+ strftime(timebuf,sizeof(timebuf),Q9_LOG_FORMAT_TIME, gmtime(&now));
+ len=snprintf(buf2,sizeof(buf2),"[%s] %s %s\n",timebuf,userbuf,buf);