pipicswd.c clean up log printing