equal
deleted
inserted
replaced
46 } |
46 } |
47 } |
47 } |
48 |
48 |
49 |
49 |
50 void TSYLogger::WriteFormat(TRefByValue<const TDesC8> aFmt,...) |
50 void TSYLogger::WriteFormat(TRefByValue<const TDesC8> aFmt,...) |
51 { |
51 { |
52 //coverity[var_decl] |
52 /* coverity[var_decl] */ VA_LIST list; |
53 VA_LIST list; |
|
54 VA_START(list,aFmt); |
53 VA_START(list,aFmt); |
55 |
54 |
56 // |
55 // |
57 // Assemble time stamp and callers text into one string |
56 // Assemble time stamp and callers text into one string |
58 TBuf8<KTSYLogBufferSize> buf; |
57 TBuf8<KTSYLogBufferSize> buf; |
59 TTime now; |
58 TTime now; |
60 now.UniversalTime(); |
59 now.UniversalTime(); |
61 TDateTime t(now.DateTime()); |
60 TDateTime t(now.DateTime()); |
62 buf.Format(KTimeFormat,t.Hour(),t.Minute(),t.Second(),t.MicroSecond()); |
61 buf.Format(KTimeFormat,t.Hour(),t.Minute(),t.Second(),t.MicroSecond()); |
63 //coverity[uninit_use_in_call] |
62 /* coverity[uninit_use_in_call] */ buf.AppendFormatList(aFmt,list); |
64 buf.AppendFormatList(aFmt,list); |
|
65 |
63 |
66 // |
64 // |
67 // Open log, write text to log and close log |
65 // Open log, write text to log and close log |
68 RFileLogger log; |
66 RFileLogger log; |
69 if(KErrNone==log.Connect()) |
67 if(KErrNone==log.Connect()) |