aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-11-07 13:41:02 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-11-07 13:41:02 -0800
commit5a2cbcf4ce0f56e5f66aad3cd674f8c8edf428bf (patch)
treebe46d1091b285936b57f60538012b7b21cee6218 /binutils/readelf.c
parent0115826241fc07d78fbd9709567b1c35fece4179 (diff)
downloadbinutils-5a2cbcf4ce0f56e5f66aad3cd674f8c8edf428bf.zip
binutils-5a2cbcf4ce0f56e5f66aad3cd674f8c8edf428bf.tar.gz
binutils-5a2cbcf4ce0f56e5f66aad3cd674f8c8edf428bf.tar.bz2
Cast time value to unsigned long to print
* readelf.c (process_dynamic_section): Cast time value to unsigned long to print.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 5bd3a4b..e13bef1 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -8880,7 +8880,8 @@ process_dynamic_section (FILE * file)
tmp = gmtime (&atime);
/* PR 17533 file: 041-1244816-0.004. */
if (tmp == NULL)
- printf (_("<corrupt time val: %lx"), atime);
+ printf (_("<corrupt time val: %lx"),
+ (unsigned long) atime);
else
printf ("%04u-%02u-%02uT%02u:%02u:%02u\n",
tmp->tm_year + 1900, tmp->tm_mon + 1, tmp->tm_mday,