about summary refs log tree commit diff
path: root/elf/dl-deps.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-deps.c')
-rw-r--r--elf/dl-deps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/dl-deps.c b/elf/dl-deps.c
index 899692ee3f..d59f53658d 100644
--- a/elf/dl-deps.c
+++ b/elf/dl-deps.c
@@ -119,7 +119,7 @@ struct list
 	    else							      \
 	      {								      \
 		/* This is for DT_AUXILIARY.  */			      \
-		if (_dl_debug_libs)					      \
+		if (__builtin_expect (_dl_debug_libs, 0))		      \
 		  _dl_debug_message (1, "cannot load auxiliary `", __str,     \
 				     "' because of empty dynamic string"      \
 				     " token substitution\n", NULL);	      \
@@ -280,7 +280,7 @@ _dl_map_object_deps (struct link_map *map,
 		    args.name = name;
 
 		    /* Say that we are about to load an auxiliary library.  */
-		    if (_dl_debug_libs)
+		    if (__builtin_expect (_dl_debug_libs, 0))
 		      _dl_debug_message (1, "load auxiliary object=",
 					 name, " requested by file=",
 					 l->l_name[0]
@@ -302,7 +302,7 @@ _dl_map_object_deps (struct link_map *map,
 		else
 		  {
 		    /* Say that we are about to load an auxiliary library.  */
-		    if (_dl_debug_libs)
+		    if (__builtin_expect (_dl_debug_libs, 0))
 		      _dl_debug_message (1, "load filtered object=", name,
 					 " requested by file=",
 					 l->l_name[0]