* Add missing newlines for some log messages.

This commit is contained in:
Justin Maggard 2011-03-30 22:31:39 +00:00
parent 0519359927
commit f7e14ee77c
3 changed files with 5 additions and 5 deletions

View File

@ -1142,7 +1142,7 @@ main(int argc, char * * argv)
inet_ntoa(clientname.sin_addr), inet_ntoa(clientname.sin_addr),
ntohs(clientname.sin_port) ); ntohs(clientname.sin_port) );
/*if (fcntl(shttp, F_SETFL, O_NONBLOCK) < 0) { /*if (fcntl(shttp, F_SETFL, O_NONBLOCK) < 0) {
DPRINTF(E_ERROR, L_GENERAL, "fcntl F_SETFL, O_NONBLOCK"); DPRINTF(E_ERROR, L_GENERAL, "fcntl F_SETFL, O_NONBLOCK\n");
}*/ }*/
/* Create a new upnphttp object and add it to /* Create a new upnphttp object and add it to
* the active upnphttp object list */ * the active upnphttp object list */

6
sql.c
View File

@ -136,7 +136,7 @@ sql_get_text_field(void *db, const char *fmt, ...)
if (db == NULL) if (db == NULL)
{ {
DPRINTF(E_WARN, L_DB_SQL, "%s: db is NULL", __func__); DPRINTF(E_WARN, L_DB_SQL, "db is NULL\n");
return NULL; return NULL;
} }
@ -182,7 +182,7 @@ sql_get_text_field(void *db, const char *fmt, ...)
len = sqlite3_column_bytes(stmt, 0); len = sqlite3_column_bytes(stmt, 0);
if ((str = sqlite3_malloc(len + 1)) == NULL) if ((str = sqlite3_malloc(len + 1)) == NULL)
{ {
DPRINTF(E_ERROR, L_DB_SQL, "malloc failed"); DPRINTF(E_ERROR, L_DB_SQL, "malloc failed\n");
break; break;
} }
@ -190,7 +190,7 @@ sql_get_text_field(void *db, const char *fmt, ...)
break; break;
default: default:
DPRINTF(E_WARN, L_DB_SQL, "%s: step failed: %s", __func__, sqlite3_errmsg(db)); DPRINTF(E_WARN, L_DB_SQL, "SQL step failed: %s\n", sqlite3_errmsg(db));
str = NULL; str = NULL;
break; break;
} }

View File

@ -612,7 +612,7 @@ ProcessHTTPPOST_upnphttp(struct upnphttp * h)
{ {
static const char err400str[] = static const char err400str[] =
"<html><body>Bad request</body></html>"; "<html><body>Bad request</body></html>";
DPRINTF(E_WARN, L_HTTP, "No SOAPAction in HTTP headers"); DPRINTF(E_WARN, L_HTTP, "No SOAPAction in HTTP headers\n");
h->respflags = FLAG_HTML; h->respflags = FLAG_HTML;
BuildResp2_upnphttp(h, 400, "Bad Request", BuildResp2_upnphttp(h, 400, "Bad Request",
err400str, sizeof(err400str) - 1); err400str, sizeof(err400str) - 1);