mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
* listing.c (print_timestamp): Use localtime rather than
localtime_r since not all build environments provide the latter.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2008-04-11 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* listing.c (print_timestamp): Use localtime rather than
|
||||||
|
localtime_r since not all build environments provide the latter.
|
||||||
|
|
||||||
2008-04-10 H.J. Lu <hongjiu.lu@intel.com>
|
2008-04-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* NEWS: Mention -msse-check=[none|error|warning].
|
* NEWS: Mention -msse-check=[none|error|warning].
|
||||||
|
@ -1065,12 +1065,12 @@ static void
|
|||||||
print_timestamp (void)
|
print_timestamp (void)
|
||||||
{
|
{
|
||||||
const time_t now = time (NULL);
|
const time_t now = time (NULL);
|
||||||
struct tm timestamp;
|
struct tm * timestamp;
|
||||||
char stampstr[MAX_DATELEN];
|
char stampstr[MAX_DATELEN];
|
||||||
|
|
||||||
/* Any portable way to obtain subsecond values??? */
|
/* Any portable way to obtain subsecond values??? */
|
||||||
localtime_r (&now, ×tamp);
|
timestamp = localtime (&now);
|
||||||
strftime (stampstr, MAX_DATELEN, "%Y-%m-%dT%H:%M:%S.000%z", ×tamp);
|
strftime (stampstr, MAX_DATELEN, "%Y-%m-%dT%H:%M:%S.000%z", timestamp);
|
||||||
fprintf (list_file, _("\n time stamp \t: %s\n\n"), stampstr);
|
fprintf (list_file, _("\n time stamp \t: %s\n\n"), stampstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user