diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2020-02-14 19:19:39 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2020-02-14 19:19:39 +0000 |
commit | aa36cd6999384cddbfa0d030bcdd44e8bf9c7779 (patch) | |
tree | 4f865c7e1146baad112589d1fc57dc6b335c68ec /source/compiler/aslcompile.c | |
parent | 8bf5cb5c35eaf503e388d960914add6a539c1e06 (diff) |
Notes
Diffstat (limited to 'source/compiler/aslcompile.c')
-rw-r--r-- | source/compiler/aslcompile.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/compiler/aslcompile.c b/source/compiler/aslcompile.c index 0f145560377d5..9481b6bb2d607 100644 --- a/source/compiler/aslcompile.c +++ b/source/compiler/aslcompile.c @@ -647,7 +647,7 @@ void AslCompilerFileHeader ( UINT32 FileId) { - struct tm *NewTime; + char *NewTime; time_t Aclock; char *Prefix = ""; @@ -691,13 +691,17 @@ AslCompilerFileHeader ( /* Compilation header with timestamp */ - (void) time (&Aclock); - NewTime = localtime (&Aclock); + Aclock = time (NULL); + NewTime = ctime (&Aclock); FlPrintFile (FileId, - "%sCompilation of \"%s\" - %s%s\n", - Prefix, AslGbl_Files[ASL_FILE_INPUT].Filename, asctime (NewTime), - Prefix); + "%sCompilation of \"%s\" -", + Prefix, AslGbl_Files[ASL_FILE_INPUT].Filename); + + if (NewTime) + { + FlPrintFile (FileId, " %s%s\n", NewTime, Prefix); + } switch (FileId) { |