[seahorse/wip/nielsdg/server-source-props: 10/10] pgp: ldap-source: Don't add "\n" with g_debug




commit 2acec0a3f3b8b3d09de9808527bfc4693a4e275e
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Thu Feb 18 13:29:02 2021 +0100

    pgp: ldap-source: Don't add "\n" with g_debug

 pgp/seahorse-ldap-source.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/pgp/seahorse-ldap-source.c b/pgp/seahorse-ldap-source.c
index 44e9d6f1..13c390b3 100644
--- a/pgp/seahorse-ldap-source.c
+++ b/pgp/seahorse-ldap-source.c
@@ -140,17 +140,16 @@ dump_ldap_entry (LDAP *ld, LDAPMessage *res)
     char *t;
 
     t = ldap_get_dn (ld, res);
-    g_debug ("dn: %s\n", t);
+    g_debug ("dn: %s", t);
     ldap_memfree (t);
 
     for (t = ldap_first_attribute (ld, res, &pos); t;
          t = ldap_next_attribute (ld, res, pos)) {
         g_auto(GStrv) values = NULL;
-        char **v;
 
         values = get_ldap_values (ld, res, t);
-        for (v = values; *v; v++)
-            g_debug ("%s: %s\n", t, *v);
+        for (char **v = values; *v; v++)
+            g_debug ("%s: %s", t, *v);
 
         ldap_memfree (t);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]