OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 isspace(static_cast<unsigned char>(msgbuf[len-1]))) { | 164 isspace(static_cast<unsigned char>(msgbuf[len-1]))) { |
165 msgbuf[--len] = 0; | 165 msgbuf[--len] = 0; |
166 } | 166 } |
167 tmp << " " << msgbuf; | 167 tmp << " " << msgbuf; |
168 } | 168 } |
169 break; | 169 break; |
170 } | 170 } |
171 #endif // WEBRTC_WIN | 171 #endif // WEBRTC_WIN |
172 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) | 172 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) |
173 case ERRCTX_OSSTATUS: { | 173 case ERRCTX_OSSTATUS: { |
174 tmp << " " << nonnull(GetMacOSStatusErrorString(err), "Unknown error"); | 174 std::string desc(DescriptionFromOSStatus(err)); |
175 if (const char* desc = GetMacOSStatusCommentString(err)) { | 175 tmp << " " << (desc.empty() ? "Unknown error" : desc.c_str()); |
176 tmp << ": " << desc; | |
177 } | |
178 break; | 176 break; |
179 } | 177 } |
180 #endif // WEBRTC_MAC && !defined(WEBRTC_IOS) | 178 #endif // WEBRTC_MAC && !defined(WEBRTC_IOS) |
181 default: | 179 default: |
182 break; | 180 break; |
183 } | 181 } |
184 extra_ = tmp.str(); | 182 extra_ = tmp.str(); |
185 } | 183 } |
186 } | 184 } |
187 | 185 |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 } | 547 } |
550 | 548 |
551 if (state) { | 549 if (state) { |
552 state->unprintable_count_[input] = consecutive_unprintable; | 550 state->unprintable_count_[input] = consecutive_unprintable; |
553 } | 551 } |
554 } | 552 } |
555 | 553 |
556 ////////////////////////////////////////////////////////////////////// | 554 ////////////////////////////////////////////////////////////////////// |
557 | 555 |
558 } // namespace rtc | 556 } // namespace rtc |
OLD | NEW |