diff --git a/minidlna.c b/minidlna.c index a8853f9..e082035 100644 --- a/minidlna.c +++ b/minidlna.c @@ -1142,7 +1142,7 @@ main(int argc, char * * argv) inet_ntoa(clientname.sin_addr), ntohs(clientname.sin_port) ); /*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 * the active upnphttp object list */ diff --git a/sql.c b/sql.c index e38a744..6311e1e 100644 --- a/sql.c +++ b/sql.c @@ -136,7 +136,7 @@ sql_get_text_field(void *db, const char *fmt, ...) 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; } @@ -182,7 +182,7 @@ sql_get_text_field(void *db, const char *fmt, ...) len = sqlite3_column_bytes(stmt, 0); 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; } @@ -190,7 +190,7 @@ sql_get_text_field(void *db, const char *fmt, ...) break; 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; break; } diff --git a/upnphttp.c b/upnphttp.c index 87b3e40..cfea12d 100644 --- a/upnphttp.c +++ b/upnphttp.c @@ -612,7 +612,7 @@ ProcessHTTPPOST_upnphttp(struct upnphttp * h) { static const char err400str[] = "Bad request"; - 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; BuildResp2_upnphttp(h, 400, "Bad Request", err400str, sizeof(err400str) - 1);