summaryrefslogtreecommitdiff
path: root/src/strings.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-01-02 17:44:39 +0000
committerUlrich Drepper <drepper@redhat.com>2008-01-02 17:44:39 +0000
commit3cbdd387c752999255aea91600b5cfdefbeac7d0 (patch)
tree50c18bd26f8cd31f4c1aa3ce1d78bb98548659ba /src/strings.c
parentad024afc93dcd0f4797b3e80bfb6b80c34da5c12 (diff)
downloadelfutils-3cbdd387c752999255aea91600b5cfdefbeac7d0.tar.gz
propagate from branch 'com.redhat.elfutils.disasm' (head d15b4eb794e81e477f9896fe82a74cb5ecf4514c)
to branch 'com.redhat.elfutils' (head eaacbf01f8cc89d043ec6eca9b5e35cb5c4cde06)
Diffstat (limited to 'src/strings.c')
-rw-r--r--src/strings.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/strings.c b/src/strings.c
index b9c559b3..b2109961 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -422,13 +422,13 @@ process_chunk (const char *fname, const unsigned char *buf, off64_t to,
if (curlen >= min_len)
{
/* We found a match. */
- if (unlikely (fname != NULL))
+ if (likely (fname != NULL))
{
fputs_unlocked (fname, stdout);
fputs_unlocked (": ", stdout);
}
- if (unlikely (locfmt != NULL))
+ if (likely (locfmt != NULL))
printf (locfmt, (int64_t) to - len - (buf - start));
if (unlikely (*unprinted != NULL))
@@ -739,3 +739,6 @@ read_elf (Elf *elf, int fd, const char *fname, off64_t fdlen)
return result;
}
+
+
+#include "debugpred.h"