Conversation
simon-ess
left a comment
There was a problem hiding this comment.
There seem to be a few also in the function save_restoreShow, see
epicsTimeToStrftime(tmpstr, sizeof(tmpstr), TIMEFMT, &plist->save_time);
printf(" Last save time :%s", tmpstr);
epicsTimeToStrftime(tmpstr, sizeof(tmpstr), TIMEFMT, &plist->backup_time);
printf(" Last backup time:%s", tmpstr);and
printf(" channel_connected = %d", pchannel->channel_connected);|
Please don't mindlessly convert every I'm not sure whether you have or not since there are so many changes here and I don't know the code in detail, but any routines that are normally run by an IOCSH command (possibly indirectly) may be deliberately using Please respond and confirm whether you were aware of and have considered this subtlety. Also, the filename "log.h" makes me a bit nervous given how generic that is, although I believe it should always be found before any OS-specific "log.h" file since you're using double-quotes in the |
Thanks for the review. The commits 59d6185 and 59736ee are the ones I convert
Funny, I was expecting this. I'll try to think into a better name. |
simon-ess
left a comment
There was a problem hiding this comment.
I think that this is overall a good change, although as @anjohnson pointed out there are a few of the errlog changes that perhaps should remain printfs (in the manual restore function).
The error logs had a mixture of standards in regard of preappending tags like file, function or just save_restore. This commit adds a macro and convert all error output to use it so all messages have the same format.
|
LGTM now. Maybe add a release note about this, noting that anyone parsing their IOC logs (e.g. ESS 😄 ) for saverestore output may want to revisit that parsing... |
|
Hi, is there anything missing for this to be merged? |
fixes #81