summaryrefslogtreecommitdiff
path: root/src/dd.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-04-27 10:44:25 +0100
committerPádraig Brady <P@draigBrady.com>2015-04-27 10:55:26 +0100
commit0e7ac9a4609248663af76f202418dabf1c13efbe (patch)
treeacefcdcd41c30c14925d3e5e904a27653bbadcdb /src/dd.c
parent17fba994bd1620ab5d4bdaeda797c6071f6130b7 (diff)
downloadcoreutils-0e7ac9a4609248663af76f202418dabf1c13efbe.tar.xz
maint: fix printf format for signed integers
With GCC 5 and the newly added warnings from gnulib, ensure the correct signed integer is passed for the printf format, to avoid -Werror=format= failures.
Diffstat (limited to 'src/dd.c')
-rw-r--r--src/dd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dd.c b/src/dd.c
index 321b096d4..6b09bc645 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -1685,7 +1685,7 @@ skip_via_lseek (char const *filename, int fdesc, off_t offset, int whence)
error (0, 0, _("warning: working around lseek kernel bug for file "
"(%s)\n of mt_type=0x%0lx -- "
"see <sys/mtio.h> for the list of types"),
- filename, s2.mt_type);
+ filename, s2.mt_type + 0Lu);
errno = 0;
new_position = -1;
}