aboutsummaryrefslogtreecommitdiff
path: root/src/Server.c
diff options
context:
space:
mode:
authorswhite <swhite@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2004-06-01 13:43:16 +0000
committerswhite <swhite@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2004-06-01 13:43:16 +0000
commitcacd8ef4102ec88f542da09acd44d0d0a0b28070 (patch)
treebe6593e7004eedc16ef87546b5f70ac709f0087d /src/Server.c
parent6ed222ce2f447f20e04d2a448d4b2a0a723dc0ae (diff)
Concerning bug 1699:
Except for a few places where fprintf(stderr... is explicitly #ifdef'ed out as debug code, replaced calls with CCTK_WARN with appropriate warning levels. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@210 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Server.c')
-rw-r--r--src/Server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Server.c b/src/Server.c
index 19ca3f5..ad44ba9 100644
--- a/src/Server.c
+++ b/src/Server.c
@@ -169,7 +169,8 @@ int HTTP_RegisterPage(const char *path, int (*function)(const cGH *, httpRequest
if(Util_HashData(pages, strlen(path), path, 0))
{
- fprintf(stderr, "Page %s already exists\n", path);
+ CCTK_WARN( 1, "Page already exists:\n" );
+ CCTK_WARN( 1, path );
}
else
{
@@ -533,7 +534,7 @@ static double evaluator(const char *expression, void *data)
retval = *((CCTK_REAL *)pointer);
break;
default :
- fprintf(stderr, "Unsupported variable type %d\n", vartype);
+ CCTK_WARN( 0, "Unsupported variable type" );
retval = 0.0;
}
}