aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-20 07:40:10 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-20 07:40:49 -0400
commit0fccfd92e7de1c339cfa11d40f3c51969424a4c3 (patch)
treea855058f0dd17000ec9ebe4dd87a63043cae3c1e
parentbuild: refresh autotool regen logic for git (diff)
downloadpax-utils-0fccfd92e7de1c339cfa11d40f3c51969424a4c3.tar.gz
pax-utils-0fccfd92e7de1c339cfa11d40f3c51969424a4c3.tar.bz2
pax-utils-0fccfd92e7de1c339cfa11d40f3c51969424a4c3.zip
avoid using \n with warn macros
These already append a newline for us, so don't want two of them.
-rw-r--r--paxelf.c2
-rw-r--r--scanelf.c2
-rw-r--r--scanmacho.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/paxelf.c b/paxelf.c
index 2bafda4..b0ba144 100644
--- a/paxelf.c
+++ b/paxelf.c
@@ -697,7 +697,7 @@ char *pax_short_pf_flags(unsigned long flags)
((flags & PF_RANDEXEC) && (flags & PF_NORANDEXEC)) || \
((flags & PF_EMUTRAMP) && (flags & PF_NOEMUTRAMP)) || \
((flags & PF_RANDMMAP) && (flags & PF_NORANDMMAP)))
- warn("inconsistent state detected. flags=%lX\n", flags);
+ warn("inconsistent state detected. flags=%lX", flags);
return buffer;
}
diff --git a/scanelf.c b/scanelf.c
index 2591e92..99192b2 100644
--- a/scanelf.c
+++ b/scanelf.c
@@ -1842,7 +1842,7 @@ static int scanelf_dirat(int dir_fd, const char *path)
len = strlen(dentry->d_name);
if (len + pathlen + 1 >= sizeof(buf)) {
- warnf("Skipping '%s%s': len > sizeof(buf); %zu > %zu\n",
+ warnf("Skipping '%s%s': len > sizeof(buf); %zu > %zu",
path, dentry->d_name, len + pathlen + 1, sizeof(buf));
continue;
}
diff --git a/scanmacho.c b/scanmacho.c
index f8c4d89..ee713f9 100644
--- a/scanmacho.c
+++ b/scanmacho.c
@@ -472,8 +472,8 @@ static int scanmacho_dir(const char *path)
continue;
len = (pathlen + 1 + strlen(dentry->d_name) + 1);
if (len >= sizeof(buf)) {
- warnf("Skipping '%s': len > sizeof(buf); %lu > %lu\n", path,
- (unsigned long)len, (unsigned long)sizeof(buf));
+ warnf("Skipping '%s': len > sizeof(buf); %zu > %zu",
+ path, len, sizeof(buf));
continue;
}
snprintf(buf, sizeof(buf), "%s%s%s", path, (path[pathlen-1] == '/') ? "" : "/", dentry->d_name);