| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 GetDateFormat(LOCALE_SYSTEM_DEFAULT, 0, &sys_time, TEXT("MMM dd yyyy"), | 83 GetDateFormat(LOCALE_SYSTEM_DEFAULT, 0, &sys_time, TEXT("MMM dd yyyy"), |
| 84 sz_date_str, 20); | 84 sz_date_str, 20); |
| 85 | 85 |
| 86 // Create time string (e.g. 15:32:08) | 86 // Create time string (e.g. 15:32:08) |
| 87 GetTimeFormat(LOCALE_SYSTEM_DEFAULT, 0, &sys_time, TEXT("HH':'mm':'ss"), | 87 GetTimeFormat(LOCALE_SYSTEM_DEFAULT, 0, &sys_time, TEXT("HH':'mm':'ss"), |
| 88 sz_time_str, 20); | 88 sz_time_str, 20); |
| 89 | 89 |
| 90 sprintf(trace_message, "Local Date: %ls Local Time: %ls", sz_date_str, | 90 sprintf(trace_message, "Local Date: %ls Local Time: %ls", sz_date_str, |
| 91 sz_time_str); | 91 sz_time_str); |
| 92 | 92 |
| 93 // Include NULL termination (hence + 1). | 93 // Include null termination (hence + 1). |
| 94 return static_cast<int32_t>(strlen(trace_message) + 1); | 94 return static_cast<int32_t>(strlen(trace_message) + 1); |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace webrtc | 97 } // namespace webrtc |
| OLD | NEW |