Bug 34560

Summary: gtkprintbackendcups.c: fix \n at end of a debugging note
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: libgtk+3Assignee: Yuri N. Sedunov <aris>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: minor    
Priority: P3 CC: aris, iv
Version: unstable   
Hardware: all   
OS: Linux   
URL: https://gitlab.gnome.org/GNOME/gtk/merge_requests/24
Bug Depends on:    
Bug Blocks: 34559    

Description Ivan Zakharyaschev 2018-02-17 21:53:52 MSK
3.22.28-alt2

Without the newline in the debugging message, there is a mess because two
messages get into the same line.

https://gitlab.gnome.org/GNOME/gtk/merge_requests/24/diffs?commit_id=d2a4febfa75182d36ffd48eb05e9054e8bf9cf53 :

diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index f391c69..7d061c5 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -2386,7 +2386,7 @@ cups_printer_handle_attribute (GtkPrintBackendCups *cups_backend,
   else
     {
       GTK_NOTE (PRINTING,
-		g_print ("CUPS Backend: Attribute %s ignored", ippGetName (attr)));
+		g_print ("CUPS Backend: Attribute %s ignored\n", ippGetName (attr)));
     }
 }
Comment 1 Ivan A. Melnikov 2019-02-24 08:51:31 MSK
This change made it into 3.22.29-alt1 build in March 2018.