aboutsummaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.c')
-rw-r--r--src/http.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/http.c b/src/http.c
index 3254954..91fffa0 100644
--- a/src/http.c
+++ b/src/http.c
@@ -628,8 +628,8 @@ static int AddHeader(httpRequest *request, const char *line)
}
else
{
- CCTK_WARN( 1, "Invalid header line:\n" );
- CCTK_WARN( 1, line );
+ CCTK_VWarn(1, __LINE__,__FILE__,CCTK_THORNSTRING,
+ "Invalid header line:\n\"%s\"", line );
}
if(value)
@@ -780,9 +780,8 @@ static int StripArgs(httpRequest *request, char *request_uri)
}
else
{
- CCTK_WARN( 1, "Argument " );
- CCTK_WARN( 1, token );
- CCTK_WARN( 1, " has no value!\n" );
+ CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
+ "Argument \"%s\" has no value!", token );
}
token=strtok(NULL, "&");
}