]> arthur.barton.de Git - netatalk.git/commitdiff
remove trailing \n char in LOG calls.
authordidg <didg>
Tue, 11 Jan 2005 23:00:40 +0000 (23:00 +0000)
committerdidg <didg>
Tue, 11 Jan 2005 23:00:40 +0000 (23:00 +0000)
etc/papd/print_cups.c
libatalk/dsi/dsi_tcp.c
libatalk/util/fault.c

index dbc91157536a63b7a501d7a4706c2fd22d7d107c..07148d3b83d98f75c033230f6282e8c39f228b84 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: print_cups.c,v 1.1.2.1 2004-06-09 01:25:54 bfernhomberg Exp $
+ * $Id: print_cups.c,v 1.1.2.1.2.1 2005-01-11 23:00:40 didg Exp $
  *
  * Copyright 2004 Bjoern Fernhomberg.
  *
@@ -113,7 +113,7 @@ cups_printername_ok(char *name)         /* I - Name of printer */
 
         if ((http = httpConnect(cupsServer(), ippPort())) == NULL)
         {
-               LOG(log_error, logtype_papd, "Unable to connect to CUPS server %s - %s\n",
+               LOG(log_error, logtype_papd, "Unable to connect to CUPS server %s - %s",
                          cupsServer(), strerror(errno));
                 return (0);
         }
@@ -156,7 +156,7 @@ cups_printername_ok(char *name)         /* I - Name of printer */
 
         if ((response = cupsDoRequest(http, request, "/")) == NULL)
         {
-               LOG(log_error, logtype_papd, "Unable to get printer status for %s - %s\n", name,
+               LOG(log_error, logtype_papd, "Unable to get printer status for %s - %s", name,
                          ippErrorString(cupsLastError()));
                 httpClose(http);
                 return (0);
@@ -166,7 +166,7 @@ cups_printername_ok(char *name)         /* I - Name of printer */
 
         if (response->request.status.status_code >= IPP_OK_CONFLICT)
         {
-               LOG(log_error, logtype_papd, "Unable to get printer status for %s - %s\n", name,
+               LOG(log_error, logtype_papd, "Unable to get printer status for %s - %s", name,
                          ippErrorString(response->request.status.status_code));
                 ippDelete(response);
                 return (0);
@@ -218,7 +218,7 @@ cups_get_printer_status (struct printer *pr)
 
         if ((http = httpConnect(cupsServer(), ippPort())) == NULL)
         {
-               LOG(log_error, logtype_papd, "Unable to connect to CUPS server %s - %s\n",
+               LOG(log_error, logtype_papd, "Unable to connect to CUPS server %s - %s",
                          cupsServer(), strerror(errno));
                 return (0);
         }
@@ -268,7 +268,7 @@ cups_get_printer_status (struct printer *pr)
 
         if ((response = cupsDoRequest(http, request, "/")) == NULL)
         {
-               LOG(log_error, logtype_papd, "Unable to get printer status for %s - %s\n", pr->p_printer,
+               LOG(log_error, logtype_papd, "Unable to get printer status for %s - %s", pr->p_printer,
                          ippErrorString(cupsLastError()));
                 httpClose(http);
                 return (0);
@@ -276,7 +276,7 @@ cups_get_printer_status (struct printer *pr)
 
         if (response->request.status.status_code >= IPP_OK_CONFLICT)
         {
-               LOG(log_error, logtype_papd, "Unable to get printer status for %s - %s\n", pr->p_printer,
+               LOG(log_error, logtype_papd, "Unable to get printer status for %s - %s", pr->p_printer,
                          ippErrorString(response->request.status.status_code));
                 ippDelete(response);
                 httpClose(http);
@@ -357,7 +357,7 @@ int cups_print_job ( char * name, char *filename, char *job, char *username, cha
        strlcat ( filepath , filename, sizeof(filepath));
        
        if ((jobid = cupsPrintFile( name, filepath, job, 0, options)) == 0)
-               LOG(log_error, logtype_papd, "Unable to print job '%s' (%s) to printer '%s' for user '%s' - CUPS error : '%s'\n", job, filepath, name, username, ippErrorString(cupsLastError()));
+               LOG(log_error, logtype_papd, "Unable to print job '%s' (%s) to printer '%s' for user '%s' - CUPS error : '%s'", job, filepath, name, username, ippErrorString(cupsLastError()));
        else 
                LOG(log_info, logtype_papd, "Job '%s' queued to printer '%s' with id '%d'", job, name, jobid);
 
index 4fe5e4c24319e37b69d5428cf592770ff4287151..ae82820e110d680ecc3ca2b8031d83ec5c6d15f5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: dsi_tcp.c,v 1.9.10.7 2004-05-04 15:38:26 didg Exp $
+ * $Id: dsi_tcp.c,v 1.9.10.7.2.1 2005-01-11 23:00:42 didg Exp $
  *
  * Copyright (c) 1997, 1998 Adrian Sun (asun@zoology.washington.edu)
  * All rights reserved. See COPYRIGHT.
@@ -335,8 +335,8 @@ int dsi_tcp_init(DSI *dsi, const char *hostname, const char *address,
               inet_ntoa(dsi->server.sin_addr), ifr.ifr_name);
          goto iflist_done;
       }
-      LOG(log_info, logtype_default, "dsi_tcp (Chooser will not select afp/tcp)\n\
-Check to make sure %s is in /etc/hosts and the correct domain is in\n\
+      LOG(log_info, logtype_default, "dsi_tcp (Chooser will not select afp/tcp) \
+Check to make sure %s is in /etc/hosts and the correct domain is in \
 /etc/resolv.conf: %s", hostname, strerror(errno));
 
 iflist_done:
index a6f3aab6098aaeb6c9e12fb9ed431024fc9e1a66..7ef4fb8a5143cac21ddc8c6bc604d60ca82822a2 100644 (file)
@@ -102,7 +102,7 @@ static void smb_panic(const char *why)
                extern unsigned int global_clobber_region_line;
 
                if (global_clobber_region_function) {
-                       DEBUG(0,("smb_panic: clobber_region() last called from [%s(%u)]\n",
+                       DEBUG(0,("smb_panic: clobber_region() last called from [%s(%u)]",
                                         global_clobber_region_function,
                                         global_clobber_region_line));
                }