aboutsummaryrefslogtreecommitdiff
path: root/src/Server.c
diff options
context:
space:
mode:
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;
}
}