Commit 1ea6320e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

removed newline from Error/Warning messages

parent 8863f8de
......@@ -528,7 +528,7 @@ void after_setEndOfInterval(struct Control *globs, int nrecs)
else if ( globs->OutputInterval == UNLIM_INTERVAL )
globs->EndOfInterval = FALSE;
else
Error( "output interval %d not implemented!\n", globs->OutputInterval);
Error( "output interval %d not implemented!", globs->OutputInterval);
}
}
......@@ -1428,7 +1428,7 @@ void after_precntl(struct Control *globs, struct Variable *vars)
}
if ( globs->Truncation == 0 && globs->Latitudes == 0 )
Error("Unsupported file structure!\n");
Error("Unsupported file structure!");
if ( globs->Truncation == 0 )
{
......@@ -1607,7 +1607,7 @@ void after_precntl(struct Control *globs, struct Variable *vars)
}
if ( globs->Debug )
Message( "FieldDim = %d\n", FieldDim);
Message( "FieldDim = %d", FieldDim);
globs->Field = (double *) malloc(FieldDim*sizeof(double));
......@@ -2237,7 +2237,7 @@ int afterburner(int argc, char *argv[])
switch (c)
{
case 'a': globs->AnalysisData = 1; break;
case 'b': Message( "option -b not longer needed!\n"); break;
case 'b': Message( "option -b not longer needed!"); break;
case 'c': after_printCodes(); break;
case 'd': globs->Debug = 1; break;
case 'p': ParallelRead = TRUE; break;
......
......@@ -348,21 +348,21 @@ int pstreamOpenRead(const argument_t *argument)
cdoPrint("Started child process \"%s\".", newarg+1);
status = pthread_attr_init(&attr);
if ( status ) SysError("pthread_attr_init failed for '%s'\n", newarg+1);
if ( status ) SysError("pthread_attr_init failed for '%s'", newarg+1);
status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
if ( status ) SysError("pthread_attr_setdetachstate failed for '%s'\n", newarg+1);
if ( status ) SysError("pthread_attr_setdetachstate failed for '%s'", newarg+1);
/*
param.sched_priority = 0;
status = pthread_attr_setschedparam(&attr, &param);
if ( status ) SysError("pthread_attr_setschedparam failed for '%s'\n", newarg+1);
if ( status ) SysError("pthread_attr_setschedparam failed for '%s'", newarg+1);
*/
/* status = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); */
/* if ( status ) SysError("pthread_attr_setinheritsched failed for '%s'\n", newarg+1); */
/* if ( status ) SysError("pthread_attr_setinheritsched failed for '%s'", newarg+1); */
pthread_attr_getscope(&attr, &pthreadScope);
/* status = pthread_attr_setscope(&attr, PTHREAD_SCOPE_PROCESS); */
/* if ( status ) SysError("pthread_attr_setscope failed for '%s'\n", newarg+1); */
/* if ( status ) SysError("pthread_attr_setscope failed for '%s'", newarg+1); */
/* If system scheduling scope is specified, then the thread is scheduled against all threads in the system */
/* pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM); */
......@@ -377,7 +377,7 @@ int pstreamOpenRead(const argument_t *argument)
if ( rval != 0 )
{
errno = rval;
SysError("pthread_create failed for '%s'\n", newarg+1);
SysError("pthread_create failed for '%s'", newarg+1);
}
/* free(operatorName); */
......@@ -856,7 +856,7 @@ void pstreamClose(int pstreamID)
else
{
if ( PSTREAM_Debug )
Message("%s fileID %d\n", pstreamptr->name, pstreamptr->fileID);
Message("%s fileID %d", pstreamptr->name, pstreamptr->fileID);
if ( pstreamptr->mode == 'r' )
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment