mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
Cast time value to unsigned long to print
* readelf.c (process_dynamic_section): Cast time value to unsigned long to print.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-11-07 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* readelf.c (process_dynamic_section): Cast time value to unsigned
|
||||||
|
long to print.
|
||||||
|
|
||||||
2014-11-07 Nick Clifton <nickc@redhat.com>
|
2014-11-07 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR binutils/17531
|
PR binutils/17531
|
||||||
|
@ -8880,7 +8880,8 @@ process_dynamic_section (FILE * file)
|
|||||||
tmp = gmtime (&atime);
|
tmp = gmtime (&atime);
|
||||||
/* PR 17533 file: 041-1244816-0.004. */
|
/* PR 17533 file: 041-1244816-0.004. */
|
||||||
if (tmp == NULL)
|
if (tmp == NULL)
|
||||||
printf (_("<corrupt time val: %lx"), atime);
|
printf (_("<corrupt time val: %lx"),
|
||||||
|
(unsigned long) atime);
|
||||||
else
|
else
|
||||||
printf ("%04u-%02u-%02uT%02u:%02u:%02u\n",
|
printf ("%04u-%02u-%02uT%02u:%02u:%02u\n",
|
||||||
tmp->tm_year + 1900, tmp->tm_mon + 1, tmp->tm_mday,
|
tmp->tm_year + 1900, tmp->tm_mon + 1, tmp->tm_mday,
|
||||||
|
Reference in New Issue
Block a user