1d4c55
From 768358b6a80742f6be68ecd9f952f4b60614df96 Mon Sep 17 00:00:00 2001
1d4c55
From: Eyal Itkin <eyalit@checkpoint.com>
1d4c55
Date: Tue, 31 Mar 2020 01:55:13 -0400
1d4c55
Subject: Typo fixes and CR cleanup in Safe-Linking
1d4c55
1d4c55
Removed unneeded '\' chars from end of lines and fixed some
1d4c55
indentation issues that were introduced in the original
1d4c55
Safe-Linking patch.
1d4c55
1d4c55
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
1d4c55
1d4c55
diff --git a/malloc/malloc.c b/malloc/malloc.c
1d4c55
index 1282863681..0e4acb22f6 100644
1d4c55
--- a/malloc/malloc.c
1d4c55
+++ b/malloc/malloc.c
1d4c55
@@ -2170,7 +2170,7 @@ do_check_malloc_state (mstate av)
1d4c55
       while (p != 0)
1d4c55
         {
1d4c55
 	  if (__glibc_unlikely (!aligned_OK (p)))
1d4c55
-	    malloc_printerr ("do_check_malloc_state(): " \
1d4c55
+	    malloc_printerr ("do_check_malloc_state(): "
1d4c55
 			     "unaligned fastbin chunk detected");
1d4c55
           /* each chunk claims to be inuse */
1d4c55
           do_check_inuse_chunk (av, p);
1d4c55
@@ -2977,9 +2977,9 @@ tcache_thread_shutdown (void)
1d4c55
       while (tcache_tmp->entries[i])
1d4c55
 	{
1d4c55
 	  tcache_entry *e = tcache_tmp->entries[i];
1d4c55
-      if (__glibc_unlikely (!aligned_OK (e)))
1d4c55
-	malloc_printerr ("tcache_thread_shutdown(): " \
1d4c55
-			 "unaligned tcache chunk detected");
1d4c55
+	  if (__glibc_unlikely (!aligned_OK (e)))
1d4c55
+	    malloc_printerr ("tcache_thread_shutdown(): "
1d4c55
+			     "unaligned tcache chunk detected");
1d4c55
 	  tcache_tmp->entries[i] = REVEAL_PTR (e->next);
1d4c55
 	  __libc_free (e);
1d4c55
 	}
1d4c55
@@ -4225,14 +4225,14 @@ _int_free (mstate av, mchunkptr p, int have_lock)
1d4c55
 	    for (tmp = tcache->entries[tc_idx];
1d4c55
 		 tmp;
1d4c55
 		 tmp = REVEAL_PTR (tmp->next))
1d4c55
-        {
1d4c55
-	      if (__glibc_unlikely (!aligned_OK (tmp)))
1d4c55
-		malloc_printerr ("free(): unaligned chunk detected in tcache 2");
1d4c55
-	      if (tmp == e)
1d4c55
-		malloc_printerr ("free(): double free detected in tcache 2");
1d4c55
-	    /* If we get here, it was a coincidence.  We've wasted a
1d4c55
-	       few cycles, but don't abort.  */
1d4c55
-        }
1d4c55
+	      {
1d4c55
+		if (__glibc_unlikely (!aligned_OK (tmp)))
1d4c55
+		  malloc_printerr ("free(): unaligned chunk detected in tcache 2");
1d4c55
+		if (tmp == e)
1d4c55
+		  malloc_printerr ("free(): double free detected in tcache 2");
1d4c55
+		/* If we get here, it was a coincidence.  We've wasted a
1d4c55
+		   few cycles, but don't abort.  */
1d4c55
+	      }
1d4c55
 	  }
1d4c55
 
1d4c55
 	if (tcache->counts[tc_idx] < mp_.tcache_count)
1d4c55
@@ -4506,7 +4506,7 @@ static void malloc_consolidate(mstate av)
1d4c55
       do {
1d4c55
 	{
1d4c55
 	  if (__glibc_unlikely (!aligned_OK (p)))
1d4c55
-	    malloc_printerr ("malloc_consolidate(): " \
1d4c55
+	    malloc_printerr ("malloc_consolidate(): "
1d4c55
 			     "unaligned fastbin chunk detected");
1d4c55
 
1d4c55
 	  unsigned int idx = fastbin_index (chunksize (p));
1d4c55
@@ -4938,7 +4938,7 @@ int_mallinfo (mstate av, struct mallinfo *m)
1d4c55
 	   p = REVEAL_PTR (p->fd))
1d4c55
         {
1d4c55
 	  if (__glibc_unlikely (!aligned_OK (p)))
1d4c55
-	    malloc_printerr ("int_mallinfo(): " \
1d4c55
+	    malloc_printerr ("int_mallinfo(): "
1d4c55
 			     "unaligned fastbin chunk detected");
1d4c55
           ++nfastblocks;
1d4c55
           fastavail += chunksize (p);
1d4c55
@@ -5480,7 +5480,7 @@ __malloc_info (int options, FILE *fp)
1d4c55
 	      while (p != NULL)
1d4c55
 		{
1d4c55
 		  if (__glibc_unlikely (!aligned_OK (p)))
1d4c55
-		    malloc_printerr ("__malloc_info(): " \
1d4c55
+		    malloc_printerr ("__malloc_info(): "
1d4c55
 				     "unaligned fastbin chunk detected");
1d4c55
 		  ++nthissize;
1d4c55
 		  p = REVEAL_PTR (p->fd);