| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
| 3 * Use of this source code is governed by a BSD-style license that can be | |
| 4 * found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 #include "native_client/src/trusted/validator/x86/error_reporter.h" | |
| 8 | |
| 9 #include "native_client/src/include/nacl_macros.h" | |
| 10 #include "native_client/src/shared/gio/gio.h" | |
| 11 #include "native_client/src/shared/platform/nacl_log.h" | |
| 12 | |
| 13 static const char* NaClErrorReporterSupportedNames[] = { | |
| 14 "NaClNullErrorReporter", | |
| 15 "NaClInstStateErrorReporter", | |
| 16 "NCDecoderInstErrorReporter" | |
| 17 }; | |
| 18 | |
| 19 /* Note: We can't move NaClErrorReporterSupportedName to | |
| 20 * error_reporter_verbose.c because ncval_seg_sfi/ncdecode.c needs | |
| 21 * to use it, and it is part of the base libraries needed by sel_ldr. | |
| 22 */ | |
| 23 const char* NaClErrorReporterSupportedName(NaClErrorReporterSupported kind) { | |
| 24 if ((0 < kind) && | |
| 25 (kind < NACL_ARRAY_SIZE(NaClErrorReporterSupportedNames))) { | |
| 26 return NaClErrorReporterSupportedNames[kind]; | |
| 27 } | |
| 28 return "NCDecoderInstErrorReporter"; | |
| 29 } | |
| 30 | |
| 31 void NaClNullErrorPrintf(NaClErrorReporter* self, | |
| 32 const char* format, ...) {} | |
| 33 | |
| 34 void NaClNullErrorPrintfV(NaClErrorReporter* self, | |
| 35 const char* format, | |
| 36 va_list ap) {} | |
| OLD | NEW |