aboutsummaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.c')
-rw-r--r--src/http.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/http.c b/src/http.c
index 36fcc5f..74b44fc 100644
--- a/src/http.c
+++ b/src/http.c
@@ -627,7 +627,8 @@ static int AddHeader(httpRequest *request, const char *line)
}
else
{
- fprintf(stderr, "Invalid header line '%s'\n", line);
+ CCTK_WARN( 1, "Invalid header line:\n" );
+ CCTK_WARN( 1, line );
}
if(value)
@@ -654,7 +655,7 @@ static int AddHeader(httpRequest *request, const char *line)
}
else
{
- fprintf(stderr, "Out of memory !\n");
+ CCTK_WARN( 0, "Out of memory!\n" );
}
}
else
@@ -773,14 +774,14 @@ static int StripArgs(httpRequest *request, char *request_uri)
}
else
{
-#ifdef HTTP_DEBUG
- fprintf(stderr, "Out of memory\n");
-#endif
+ CCTK_WARN( 0, "Out of memory!\n" );
}
}
else
{
- fprintf(stderr, "Argument '%s' has no value !\n", token);
+ CCTK_WARN( 1, "Argument " );
+ CCTK_WARN( 1, token );
+ CCTK_WARN( 1, " has no value!\n" );
}
token=strtok(NULL, "&");
}